![](/media/cache/profiles/IMG_2753.JPG.50x50_q85.jpg)
Can_open_masternode
source/main.h@0:9dd7c6129683, 2011-05-30 (annotated)
- Committer:
- sam_grove
- Date:
- Mon May 30 07:36:47 2011 +0000
- Revision:
- 0:9dd7c6129683
Initial public release of master node example
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sam_grove |
0:9dd7c6129683 | 1 | |
sam_grove |
0:9dd7c6129683 | 2 | #ifndef MAIN_H |
sam_grove |
0:9dd7c6129683 | 3 | #define MAIN_H |
sam_grove |
0:9dd7c6129683 | 4 | |
sam_grove |
0:9dd7c6129683 | 5 | // macros to handle the schedule timer |
sam_grove |
0:9dd7c6129683 | 6 | #define sys_timer timer_interrupt |
sam_grove |
0:9dd7c6129683 | 7 | #define reset_sys_timer() timer_interrupt = 0 |
sam_grove |
0:9dd7c6129683 | 8 | #define reset_node_id() change_node_id = 0 |
sam_grove |
0:9dd7c6129683 | 9 | // Sample Timebase [us] - used by demo (not the stack) |
sam_grove |
0:9dd7c6129683 | 10 | #define CYCLE_TIME 1000 |
sam_grove |
0:9dd7c6129683 | 11 | |
sam_grove |
0:9dd7c6129683 | 12 | typedef enum NMTStateAdjustment NMTStateAdjustment; |
sam_grove |
0:9dd7c6129683 | 13 | enum NMTStateAdjustment{ |
sam_grove |
0:9dd7c6129683 | 14 | reset, |
sam_grove |
0:9dd7c6129683 | 15 | start, |
sam_grove |
0:9dd7c6129683 | 16 | stop, |
sam_grove |
0:9dd7c6129683 | 17 | undefined |
sam_grove |
0:9dd7c6129683 | 18 | }; |
sam_grove |
0:9dd7c6129683 | 19 | |
sam_grove |
0:9dd7c6129683 | 20 | // interrupt for the main program timing control |
sam_grove |
0:9dd7c6129683 | 21 | void serviceSysTimer(); |
sam_grove |
0:9dd7c6129683 | 22 | |
sam_grove |
0:9dd7c6129683 | 23 | #endif |
sam_grove |
0:9dd7c6129683 | 24 | |
sam_grove |
0:9dd7c6129683 | 25 |