msp430timercommonp.nc
来自「tinyos-2.x.rar」· NC 代码 · 共 30 行
NC
30 行
module Msp430TimerCommonP
{
provides interface Msp430TimerEvent as VectorTimerA0;
provides interface Msp430TimerEvent as VectorTimerA1;
provides interface Msp430TimerEvent as VectorTimerB0;
provides interface Msp430TimerEvent as VectorTimerB1;
uses interface PlatformInterrupt;
}
implementation
{
TOSH_SIGNAL(TIMERA0_VECTOR) {
signal VectorTimerA0.fired();
call PlatformInterrupt.postAmble();
}
TOSH_SIGNAL(TIMERA1_VECTOR) {
signal VectorTimerA1.fired();
call PlatformInterrupt.postAmble();
}
TOSH_SIGNAL(TIMERB0_VECTOR) {
signal VectorTimerB0.fired();
call PlatformInterrupt.postAmble();
}
TOSH_SIGNAL(TIMERB1_VECTOR) {
signal VectorTimerB1.fired();
call PlatformInterrupt.postAmble();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?