File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 74
74
#error configMAX_API_CALL_INTERRUPT_PRIORITY must be greater than ( configUNIQUE_INTERRUPT_PRIORITIES / 2 )
75
75
#endif
76
76
77
+ /*
78
+ * __ARM_FP is defined by the c preprocessor when FPU support is enabled,
79
+ * ususally with the -mfpu= argument and mfloat-abi=.
80
+ *
81
+ * Note: Some implementations of the c standard library may use FPU registers
82
+ * for generic memory operations (memcpy, etc).
83
+ * When setting configUSE_TASK_FPU_SUPPORT == 1, care must be taken to
84
+ * ensure that the FPU registers are not used without an FPU context.
85
+ */
77
86
#if configUSE_TASK_FPU_SUPPORT == 0
78
87
#ifdef __ARM_FP
79
88
#error __ARM_FP is defined, so configUSE_TASK_FPU_SUPPORT must be set to either to 1 or 2.
Original file line number Diff line number Diff line change @@ -132,15 +132,16 @@ void FreeRTOS_Tick_Handler( void );
132
132
*/
133
133
#if ( configUSE_TASK_FPU_SUPPORT == 1 )
134
134
void vPortTaskUsesFPU ( void );
135
+ #define portTASK_USES_FLOATING_POINT () vPortTaskUsesFPU()
135
136
#elif ( configUSE_TASK_FPU_SUPPORT == 2 )
136
137
137
138
/*
138
139
* Each task has an FPU context already, so define this function away to
139
140
* prevent it being called accidentally.
140
141
*/
141
142
#define vPortTaskUsesFPU ()
143
+ #define portTASK_USES_FLOATING_POINT ()
142
144
#endif /* configUSE_TASK_FPU_SUPPORT */
143
- #define portTASK_USES_FLOATING_POINT () vPortTaskUsesFPU()
144
145
145
146
#define portLOWEST_INTERRUPT_PRIORITY ( ( ( uint32_t ) configUNIQUE_INTERRUPT_PRIORITIES ) - 1UL )
146
147
#define portLOWEST_USABLE_INTERRUPT_PRIORITY ( portLOWEST_INTERRUPT_PRIORITY - 1UL )
You can’t perform that action at this time.
0 commit comments