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

Revision 101, 1.5 kB (checked in by agr, 1 year ago)

counting reserves added

Line 
1 /***************************************************************
2 *                            NanoRK CONFIG                     *
3 ***************************************************************/
4 #ifndef __nrk_cfg_h     
5 #define __nrk_cfg_h
6
7 // NRK_REPORT_ERRORS will cause the kernel to print out information about
8 // missed deadlines or reserve violations
9 #define NRK_REPORT_ERRORS
10 // NRK_HALT_ON_ERRORS will cause the kernel to freeze on errors so that
11 // it is easier to see debugging messages.
12 #define NRK_HALT_AND_LOOP_ON_ERROR
13
14 // If you want to disable the looping kernel error message when the system
15 // halts, then include the following define.  This will automatically
16 // halt the error as well.
17 //#define NRK_HALT_ON_ERROR
18
19 // NRK_STACK_CHECK adds a little check to see if the bottom of the stack
20 // has been over written on all suspend calls
21 #define NRK_STACK_CHECK
22
23 //#define KERNEL_STK_ARRAY
24 // Leave NRK_NO_POWER_DOWN define in if the target can not wake up from sleep
25 // because it has no asynchronously clocked
26 //#define NRK_NO_POWER_DOWN
27
28 // Max number of tasks in your application
29 // Be sure to include the idle task
30 // Making this the correct size will save on BSS memory which
31 // is both RAM and ROM...
32 #define NRK_MAX_TASKS                   5   
33
34 #define NRK_MAX_RESERVES                5       
35                            
36
37 #define NRK_TASK_IDLE_STK_SIZE         128 // Idle task stack size min=32
38 #define NRK_APP_STACKSIZE              128
39 #define NRK_KERNEL_STACKSIZE           128
40 #define NRK_MAX_RESOURCE_CNT           1
41
42
43 #endif
Note: See TracBrowser for help on using the browser.