有人可以解释一下,为什么这个调用平台功能的简单草图不起作用。
代码:
全选extern \"C\"{
// Platform Includes
#include
#include
#include
#include
}
os_
timer_t timer;
void timerCallback(void *arg);
// the setup function runs once when you press reset or power the board
void setup() {
Serial.begin(115200);
os_timer_arm(&timer, 1000, 1);
os_timer_setfn(&timer, timerCallback, NULL);
}
// the loop function runs over and over again forever
void loop() {
}
void timerCallback(void *arg){
Serial.printf((\"Callback Invoked\\r\\n\"));
}
0