readme

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

TXT
28
字号
TestAMOnOffThis application has two different versions, slave and master. Theversion compiled is determined by a compile-time flag (SERVICE_MASTERor SERVICE_SLAVE). To compile a master:  CFLAGS=-DSERVICE_MASTER make <platform> <other options>To compile a slave:  CFLAGS=-DSERVICE_SLAVE make <platform> <other options>A master is always on. A master broadcasts a packet every second. Four ofthe five packets are data packets; every fifth packet is a control packet.It toggles Led0 when it sends a data packet and Led1 when it sends acontrol packet.When a slave hears a data packet, it toggles Led0. When a slavehears a control packet, it turns off its radio for a shortperiod of time. Led1 indicates whether the slave's radio is on.If you install a slave and a master, you should see the slave blinkLed0 a few times, then when the master blinks Led1, the slave stopsfor a little while, then resumes blinking Led0.Philip Levis, 8/7/2005

⌨️ 快捷键说明

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