root/nano-RK/projects/basic_bmac/nrk_cfg.h

Revision 528, 1.6 kB (checked in by agr, 4 months ago)

bmac reserves

Line 
1 /***************************************************************
2 *                            NanoRK CONFIG                     *
3 ***************************************************************/
4
5 #ifndef __nrk_cfg_h     
6 #define __nrk_cfg_h
7
8 // NRK_REPORT_ERRORS will cause the kernel to print out information about
9 // missed deadlines or reserve violations
10 #define NRK_REPORT_ERRORS
11 // NRK_HALT_ON_ERRORS will cause the kernel to freeze on errors so that
12 // it is easier to see debugging messages.
13 //#define NRK_HALT_ON_ERROR
14 #define NRK_HALT_AND_LOOP_ON_ERROR
15
16 // NRK_STACK_CHECK adds a little check to see if the bottom of the stack
17 // has been over written on all suspend calls
18 #define NRK_STACK_CHECK
19
20 // Leave NRK_NO_POWER_DOWN define in if the target can not wake up from sleep
21 // because it has no asynchronously clocked
22 //#define NRK_NO_POWER_DOWN
23
24 // This protects radio access to allow for multiple devices accessing
25 // the radio
26 #define RADIO_PRIORITY_CEILING          10
27
28 // Enable buffered and signal controlled serial RX
29 #define NRK_UART_BUF   1
30
31
32 // Max number of tasks in your application
33 // Be sure to include the idle task
34 // Making this the correct size will save on BSS memory which
35 // is both RAM and ROM...
36 #define NRK_MAX_TASKS                   4   
37 #define NRK_N_RES                       1       
38                            
39 #define NRK_TASK_IDLE_STK_SIZE         128   // Idle task stack size min=32
40 #define NRK_APP_STACKSIZE              128
41 #define NRK_KERNEL_STACKSIZE           256
42 #define NRK_MAX_RESOURCE_CNT           2
43
44 // Define ALL signals below
45 #define NRK_UART_RX_EVENT   (NRK_MAX_RESOURCE_CNT+3)
46
47 #define NRK_MAX_RESERVES        5
48
49 #endif
Note: See TracBrowser for help on using the browser.