Subversion Repositories svn.mios32

Rev

Rev 1184 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1184 Rev 2425
Line 1... Line 1...
1
// $Id: mios32_config.h 1184 2011-04-21 21:18:38Z tk $
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, (signed portCHAR *)"Period1mS", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD1MS, NULL);
39
// xTaskCreate(TASK_Period1mS, "Period1mS", configMINIMAL_STACK_SIZE, NULL, PRIORITY_TASK_PERIOD1MS, NULL);
40
#define MIOS32_MINIMAL_STACK_SIZE 1024
40
#define MIOS32_MINIMAL_STACK_SIZE 1024
41
41
42
// reserved memory for FreeRTOS pvPortMalloc function
42
// reserved memory for FreeRTOS pvPortMalloc function
43
#define MIOS32_HEAP_SIZE 19*1024
43
#define MIOS32_HEAP_SIZE 19*1024
44
44
45
45
46
// optional performance measuring
46
// optional performance measuring
47
// see documentation under http://www.midibox.org/mios32/manual/group___f_r_e_e_r_t_o_s___u_t_i_l_s.html
47
// see documentation under http://www.midibox.org/mios32/manual/group___f_r_e_e_r_t_o_s___u_t_i_l_s.html
48
#define configGENERATE_RUN_TIME_STATS           0
48
#define configGENERATE_RUN_TIME_STATS           0
-
 
49
#if configGENERATE_RUN_TIME_STATS
49
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS  FREERTOS_UTILS_PerfCounterInit
50
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS  FREERTOS_UTILS_PerfCounterInit
50
#define portGET_RUN_TIME_COUNTER_VALUE          FREERTOS_UTILS_PerfCounterGet
51
#define portGET_RUN_TIME_COUNTER_VALUE          FREERTOS_UTILS_PerfCounterGet
-
 
52
#endif
51
53
52
54
53
// maximum idle counter value to be expected
55
// maximum idle counter value to be expected
54
#define MAX_IDLE_CTR 223000
56
#define MAX_IDLE_CTR 223000
55
57