File: SyncLogAppC.nc

package info (click to toggle)
tinyos 2.1.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 47,476 kB
  • ctags: 36,607
  • sloc: ansic: 63,646; cpp: 14,974; java: 10,358; python: 5,215; makefile: 1,724; sh: 902; asm: 597; xml: 392; perl: 74; awk: 46
file content (26 lines) | stat: -rw-r--r-- 713 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
 * 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;
}