platformp.nc

来自「tinyos-2.0源代码!转载而已!要的尽管拿!」· NC 代码 · 共 18 行

NC
18
字号
#include "hardware.h"module PlatformP{  provides interface Init;  uses interface Init as Msp430ClockInit;  uses interface Init as LedsInit;}implementation {  command error_t Init.init() {    call Msp430ClockInit.init();    TOSH_SET_PIN_DIRECTIONS();    call LedsInit.init();    return SUCCESS;  }  default command error_t LedsInit.init() { return SUCCESS; }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?