File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -150,11 +150,14 @@ extern uint32_t SystemCoreClock;
150
150
//--------------------------------------------------------------------+
151
151
// Interrupt nesting behavior configuration.
152
152
//--------------------------------------------------------------------+
153
- /* Cortex-M specific definitions. __NVIC_PRIO_BITS is defined in core_cmx.h */
154
- #ifdef __NVIC_PRIO_BITS
153
+ #if defined( __NVIC_PRIO_BITS )
154
+ // For Cortex-M specific: __NVIC_PRIO_BITS is defined in core_cmx.h
155
155
#define configPRIO_BITS __NVIC_PRIO_BITS
156
+ #elif defined(__ECLIC_INTCTLBITS )
157
+ // RISC-V Bumblebee core from nuclei
158
+ #define configPRIO_BITS __ECLIC_INTCTLBITS
156
159
#else
157
- #error "This port requires __NVIC_PRIO_BITS to be defined"
160
+ #error "FreeRTOS configPRIO_BITS to be defined"
158
161
#endif
159
162
160
163
/* The lowest interrupt priority that can be used in a call to a "set priority" function. */
Original file line number Diff line number Diff line change @@ -150,11 +150,14 @@ extern uint32_t SystemCoreClock;
150
150
//--------------------------------------------------------------------+
151
151
// Interrupt nesting behavior configuration.
152
152
//--------------------------------------------------------------------+
153
- /* Cortex-M specific definitions. __NVIC_PRIO_BITS is defined in core_cmx.h */
154
- #ifdef __NVIC_PRIO_BITS
153
+ #if defined( __NVIC_PRIO_BITS )
154
+ // For Cortex-M specific: __NVIC_PRIO_BITS is defined in core_cmx.h
155
155
#define configPRIO_BITS __NVIC_PRIO_BITS
156
+ #elif defined(__ECLIC_INTCTLBITS )
157
+ // RISC-V Bumblebee core from nuclei
158
+ #define configPRIO_BITS __ECLIC_INTCTLBITS
156
159
#else
157
- #error "This port requires __NVIC_PRIO_BITS to be defined"
160
+ #error "FreeRTOS configPRIO_BITS to be defined"
158
161
#endif
159
162
160
163
/* The lowest interrupt priority that can be used in a call to a "set priority" function. */
You can’t perform that action at this time.
0 commit comments