File tree Expand file tree Collapse file tree 4 files changed +7
-12
lines changed Expand file tree Collapse file tree 4 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 108
108
109
109
#define configSUPPORT_DYNAMIC_ALLOCATION 1
110
110
111
-
112
111
/* Timer definitions. */
113
112
#define configUSE_TIMERS 1
114
113
#define configTIMER_TASK_PRIORITY ( ( UBaseType_t ) 3 )
@@ -128,7 +127,7 @@ to exclude the API function. */
128
127
#define INCLUDE_vTaskPrioritySet 1
129
128
#define INCLUDE_uxTaskPriorityGet 1
130
129
#define INCLUDE_vTaskDelete 1
131
- #define INCLUDE_vTaskCleanUpResources 0
130
+ #define INCLUDE_vTaskCleanUpResources 1
132
131
#define INCLUDE_vTaskSuspend 1
133
132
#define INCLUDE_vResumeFromISR 1
134
133
#define INCLUDE_vTaskDelayUntil 1
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ only for ports that are using the MPU. */
191
191
#else /* portUSING_MPU_WRAPPERS */
192
192
193
193
#if defined(__AVR_ATmega2560__ ) || defined(__AVR_ATmega2561__ ) // Mega with 2560
194
- #define PRIVILEGED_FUNCTION __attribute__ ((hot, flatten ))
194
+ #define PRIVILEGED_FUNCTION __attribute__ ((hot))
195
195
#define PRIVILEGED_DATA
196
196
#define portUSING_MPU_WRAPPERS 0
197
197
#elif defined(__AVR_ATmega640__ ) || defined(__AVR_ATmega1280__ ) || defined(__AVR_ATmega1281__ ) || defined(__AVR_ATmega664P__ ) || defined(__AVR_ATmega1284P__ ) || defined(__AVR_ATmega1284PA__ ) // Goldilocks with 1284p
Original file line number Diff line number Diff line change @@ -552,9 +552,9 @@ void prvSetupTimerInterrupt( void )
552
552
* use ISR_NOBLOCK where there is an important timer running, that should preempt the scheduler.
553
553
*
554
554
*/
555
- // ISR(portSCHEDULER_ISR, ISR_NAKED ISR_NOBLOCK)
555
+ // ISR(portSCHEDULER_ISR, ISR_NAKED ISR_NOBLOCK) __attribute__ ((hot, flatten));
556
556
ISR (portSCHEDULER_ISR , ISR_NAKED ) __attribute__ ((hot , flatten ));
557
- ISR (portSCHEDULER_ISR , ISR_NAKED )
557
+ ISR (portSCHEDULER_ISR )
558
558
{
559
559
vPortYieldFromTick ();
560
560
__asm__ __volatile__ ( "reti" );
@@ -568,7 +568,7 @@ void prvSetupTimerInterrupt( void )
568
568
*
569
569
* use ISR_NOBLOCK where there is an important timer running, that should preempt the scheduler.
570
570
*/
571
- // ISR(portSCHEDULER_ISR, ISR_NOBLOCK)
571
+ // ISR(portSCHEDULER_ISR, ISR_NOBLOCK) __attribute__ ((hot, flatten));
572
572
ISR (portSCHEDULER_ISR ) __attribute__ ((hot , flatten ));
573
573
ISR (portSCHEDULER_ISR )
574
574
{
Original file line number Diff line number Diff line change @@ -134,6 +134,7 @@ typedef unsigned char UBaseType_t;
134
134
#define portENABLE_INTERRUPTS () __asm__ __volatile__ ( "sei" ::: "memory")
135
135
136
136
/*-----------------------------------------------------------*/
137
+
137
138
/**
138
139
Enable the watchdog timer, configuring it for expire after
139
140
(value) timeout (which is a combination of the WDP0
@@ -214,7 +215,6 @@ typedef unsigned char UBaseType_t;
214
215
* from data sheet.
215
216
*/
216
217
#define portTICK_PERIOD_MS ( (TickType_t) _BV( portUSE_WDTO + 4 ) ) // Inaccurately assuming 128 kHz Watchdog Timer.
217
- // #define portTICK_PERIOD_MS ( (TickType_t)( (uint32_t) _BV( portUSE_WDTO + 11 ) / 128 ) ) // If you want accuracy, read datasheet.
218
218
219
219
/*-----------------------------------------------------------*/
220
220
@@ -228,15 +228,11 @@ extern void vPortYield( void ) __attribute__ ( ( naked ) );
228
228
/* Task function macros as described on the FreeRTOS.org WEB site. */
229
229
// This changed to add .lowtext tag for the linker for ATmega2560 and ATmega2561. To make sure they are loaded in low memory.
230
230
#define portTASK_FUNCTION_PROTO ( vFunction , pvParameters ) void vFunction( void *pvParameters ) __attribute__ ((section (".lowtext")))
231
- #define portTASK_FUNCTION ( vFunction , pvParameters ) void vFunction( void *pvParameters )
232
-
233
231
#else
234
232
#define portTASK_FUNCTION_PROTO ( vFunction , pvParameters ) void vFunction( void *pvParameters )
235
- #define portTASK_FUNCTION ( vFunction , pvParameters ) void vFunction( void *pvParameters )
236
-
237
233
#endif
238
234
239
-
235
+ #define portTASK_FUNCTION ( vFunction , pvParameters ) void vFunction( void *pvParameters )
240
236
241
237
#ifdef __cplusplus
242
238
}
You can’t perform that action at this time.
0 commit comments