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

Revision 476, 1.6 kB (checked in by agr, 6 months ago)

kernel task stats api 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 #define NRK_HALT_ON_ERROR
14
15 // Enable the watchdog as a protective measure
16 // This will only activate if the scheduler fails.
17 #define NRK_WATCHDOG
18
19 #define NRK_STATS_TRACKER
20
21 // If you want to disable the looping kernel error message when the system
22 // halts, then include the following define.  This will automatically
23 // halt the error as well.
24 //#define NRK_HALT_ON_ERROR
25
26 // NRK_STACK_CHECK adds a little check to see if the bottom of the stack
27 // has been over written on all suspend calls
28 #define NRK_STACK_CHECK
29
30 //#define KERNEL_STK_ARRAY
31 // Leave NRK_NO_POWER_DOWN define in if the target can not wake up from sleep
32 // because it has no asynchronously clocked
33 // #define NRK_NO_POWER_DOWN
34
35 // Max number of tasks in your application
36 // Be sure to include the idle task
37 // Making this the correct size will save on BSS memory which
38 // is both RAM and ROM...
39 #define NRK_MAX_TASKS                   5
40
41                            
42
43 #define NRK_TASK_IDLE_STK_SIZE         128 // Idle task stack size min=32
44 #define NRK_APP_STACKSIZE              128
45 #define NRK_KERNEL_STACKSIZE           128
46 #define NRK_MAX_RESOURCE_CNT           1
47
48
49 #endif
Note: See TracBrowser for help on using the browser.