你好 ! 请问 CC2540的 循环移位函数 和 执行空语句函数在 哪个头文件里??
时钟频率为32M时,执行一条nop 语句的时间是多少???
wenzhong shen:
你可以参考sensortag工程中的sensor.c,/* Ative delay: 125 cycles ~1 msec */#define ST_HAL_DELAY(n) st( { volatile uint32 i; for (i=0; i<(n); i++) { }; } )
参数125,约为1ms
eleczeng:
asm("NOP");
TI中文支持网


