Skip to content

Commit 07d3044

Browse files
committed
RP2040 SDK uses nonstandard names for exception handlers
1 parent f38a81d commit 07d3044

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/include/FreeRTOSConfig.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,16 @@ extern void vAssertCalled( uint32_t ulLine, const char *pcFile ) noexcept __attr
161161
#define configASSERT( x ) if( ( x ) == 0 ) vAssertCalled( __LINE__, __FILE__ )
162162

163163
/* Definitions that map the FreeRTOS port interrupt handlers to their CMSIS standard names. */
164+
165+
#ifdef __RP2040__
166+
#define xPortPendSVHandler isr_pendsv
167+
#define vPortSVCHandler isr_svcall
168+
#define xPortSysTickHandler isr_systick // the name used in the Pico sdk
169+
#else
164170
#define xPortPendSVHandler PendSV_Handler
165171
#define vPortSVCHandler SVC_Handler
166-
#define xPortSysTickHandler SysTick_Handler
172+
#define xPortSysTickHandler SysTick_Handler // the name used by everything else
173+
#endif
167174

168175
#if 0 // RRF doesn't use FreeRTOS+TCP of FreeRTOS_CLI
169176

0 commit comments

Comments
 (0)