1.“async”指出这个command或者event可以在有中断时使用
2.这里的#ifndef是 //if not defined的简写,是宏定义的一种,它是可以根据是否已经定义了一个变量来进行分支选择。
在下面的代码中,如果BLINKTORADIO_H没有定义,则#define BLINKTORADIO_H用定义,继续运行。
#ifndef BLINKTORADIO_H
#define BLINKTORADIO_H
enum{
AM_BLINKTORADIO = 6,
TIMER_PERIOD_MILLI = 500
};
typedef nx_struct BlinkToRadioMsg{
nx_uint16_t nodeid;
nx_uint16_t counter;
}BlinkToRadioMsg;
#endif