synclogappc.nc

来自「tinyos-2.x.rar」· NC 代码 · 共 27 行

NC
27
字号
/**
 * Test reading and writing to a log with lots of syncs. See README.txt for
 * more details.
 *
 * @author Mayur Maheshwari (mayur.maheshwari@gmail.com)
 * @author David Gay
 */

#include "StorageVolumes.h"

configuration SyncLogAppC { }
implementation {
  components SyncLogC,
    new TimerMilliC() as Timer0, new TimerMilliC() as Timer1,
    new LogStorageC(VOLUME_SYNCLOG, FALSE), SerialActiveMessageC,
    MainC, LedsC;

  SyncLogC.Leds -> LedsC;
  SyncLogC.Boot -> MainC;
  SyncLogC.Timer0 -> Timer0;
  SyncLogC.Timer1 -> Timer1;
  SyncLogC.LogWrite -> LogStorageC;
  SyncLogC.LogRead -> LogStorageC;
  SyncLogC.AMSend -> SerialActiveMessageC.AMSend[139];
  SyncLogC.AMControl -> SerialActiveMessageC;
}

⌨️ 快捷键说明

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