Rev 2275 | Rev 2432 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2275 | Rev 2425 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | // $Id: mios32_config.h |
1 | // $Id: mios32_config.h 2425 2016-11-03 00:44:22Z tk $
|
2 | /*
|
2 | /*
|
3 | * Local MIOS32 configuration file
|
3 | * Local MIOS32 configuration file
|
4 | *
|
4 | *
|
5 | * this file allows to disable (or re-configure) default functions of MIOS32
|
5 | * this file allows to disable (or re-configure) default functions of MIOS32
|
6 | * available switches are listed in $MIOS32_PATH/modules/mios32/MIOS32_CONFIG.txt
|
6 | * available switches are listed in $MIOS32_PATH/modules/mios32/MIOS32_CONFIG.txt
|
Line 34... | Line 34... | ||
34 | // If you want to define a different stack size for your application tasks
|
34 | // If you want to define a different stack size for your application tasks
|
35 | // (-> xTaskCreate() function), keep in mind that it has to be divided by 4,
|
35 | // (-> xTaskCreate() function), keep in mind that it has to be divided by 4,
|
36 | // since the stack width of ARM is 32bit.
|
36 | // since the stack width of ARM is 32bit.
|
37 | // The FreeRTOS define "configMINIMAL_STACK_SIZE" is (MIOS32_MINIMAL_STACK_SIZE/4)
|
37 | // The FreeRTOS define "configMINIMAL_STACK_SIZE" is (MIOS32_MINIMAL_STACK_SIZE/4)
|
38 | // it can be used in applications as well, e.g.
|
38 | // it can be used in applications as well, e.g.
|
39 | // xTaskCreate(TASK_Period1mS, |
39 | // xTaskCreate(TASK_Period1mS, "Period1mS", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD1MS, NULL);
|
40 | #define MIOS32_MINIMAL_STACK_SIZE 1100
|
40 | #define MIOS32_MINIMAL_STACK_SIZE 1100
|
41 | // P.S.: in order to check if the stack size is sufficient, store a preset pattern in Event->Presets page
|
41 | // P.S.: in order to check if the stack size is sufficient, store a preset pattern in Event->Presets page
|
42 | // Sequencer could crash with hardfault on a buffer overrun
|
42 | // Sequencer could crash with hardfault on a buffer overrun
|
43 | 43 | ||
44 | // reserved memory for FreeRTOS pvPortMalloc function
|
44 | // reserved memory for FreeRTOS pvPortMalloc function
|
Line 61... | Line 61... | ||
61 | 61 | ||
62 | // optional performance measuring
|
62 | // optional performance measuring
|
63 | // see documentation under http://www.midibox.org/mios32/manual/group___f_r_e_e_r_t_o_s___u_t_i_l_s.html
|
63 | // see documentation under http://www.midibox.org/mios32/manual/group___f_r_e_e_r_t_o_s___u_t_i_l_s.html
|
64 | #define configUSE_TRACE_FACILITY 0
|
64 | #define configUSE_TRACE_FACILITY 0
|
65 | #define configGENERATE_RUN_TIME_STATS 0
|
65 | #define configGENERATE_RUN_TIME_STATS 0
|
- | 66 | #if configGENERATE_RUN_TIME_STATS
|
|
66 | #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS FREERTOS_UTILS_PerfCounterInit
|
67 | #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS FREERTOS_UTILS_PerfCounterInit
|
67 | #define portGET_RUN_TIME_COUNTER_VALUE FREERTOS_UTILS_PerfCounterGet
|
68 | #define portGET_RUN_TIME_COUNTER_VALUE FREERTOS_UTILS_PerfCounterGet
|
- | 69 | #endif
|
|
68 | 70 | ||
69 | 71 | ||
70 | // maximum idle counter value to be expected
|
72 | // maximum idle counter value to be expected
|
71 | #if defined(MIOS32_FAMILY_LPC17xx)
|
73 | #if defined(MIOS32_FAMILY_LPC17xx)
|
72 | #define MAX_IDLE_CTR 628000 // LPC1769@120 MHz
|
74 | #define MAX_IDLE_CTR 628000 // LPC1769@120 MHz
|