GPIO_Handle hGpio;
GPIO_Config config;
hGpio = GPIO_open(GPIO_DEV0,GPIO_OPEN_RESET);
config.gpen = 0x0000FFFF; //gpen
config.gpdir = 0x0000FFFF; //gdir
config.gpval = 0x00000000; //gpval
GPIO_config(hGpio,&config);
while(1)
{
delay(20000);
GPIO_pinWrite(hGpio,GPIO_PIN3|GPIO_PIN8,1);
delay(20000);
GPIO_pinWrite(hGpio,GPIO_PIN3|GPIO_PIN8,0);
printf("DSP:%d\n",i);
i++;
}
}
刚开始接触dsp用dm642写了个流水灯,但是单步调试可以实现灯量灭控制,但是一全速运行就没效果了,是怎么回事?,还有printf输出值是正常的
全速运行停止后会报如下错误No source available for "writemsg(unsigned char, unsigned char *, char *, unsigned int) at 0x7cf8" 请指教,谢谢
noaming:
用示波器测量一下管脚,看是不是频率太大的缘故。