Skip to content

Commit c4a6a5c

Browse files
committed
skip freertos example for gd32vf103
1 parent 73f8fae commit c4a6a5c

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

examples/device/cdc_msc_freertos/.skip.MCU_GD32VF103

Whitespace-only changes.

examples/device/cdc_msc_freertos/src/FreeRTOSConfig.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,14 @@ extern uint32_t SystemCoreClock;
150150
//--------------------------------------------------------------------+
151151
// Interrupt nesting behavior configuration.
152152
//--------------------------------------------------------------------+
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
155155
#define configPRIO_BITS __NVIC_PRIO_BITS
156+
#elif defined(__ECLIC_INTCTLBITS)
157+
// RISC-V Bumblebee core from nuclei
158+
#define configPRIO_BITS __ECLIC_INTCTLBITS
156159
#else
157-
#error "This port requires __NVIC_PRIO_BITS to be defined"
160+
#error "FreeRTOS configPRIO_BITS to be defined"
158161
#endif
159162

160163
/* The lowest interrupt priority that can be used in a call to a "set priority" function. */

examples/device/hid_composite_freertos/.skip.MCU_GD32VF103

Whitespace-only changes.

examples/device/hid_composite_freertos/src/FreeRTOSConfig.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,14 @@ extern uint32_t SystemCoreClock;
150150
//--------------------------------------------------------------------+
151151
// Interrupt nesting behavior configuration.
152152
//--------------------------------------------------------------------+
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
155155
#define configPRIO_BITS __NVIC_PRIO_BITS
156+
#elif defined(__ECLIC_INTCTLBITS)
157+
// RISC-V Bumblebee core from nuclei
158+
#define configPRIO_BITS __ECLIC_INTCTLBITS
156159
#else
157-
#error "This port requires __NVIC_PRIO_BITS to be defined"
160+
#error "FreeRTOS configPRIO_BITS to be defined"
158161
#endif
159162

160163
/* The lowest interrupt priority that can be used in a call to a "set priority" function. */

0 commit comments

Comments
 (0)