Skip to content

Commit c137ce9

Browse files
caixue1102adbridge
authored andcommitted
fix MPU compilation issue
1 parent 48af6fd commit c137ce9

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

targets/TARGET_RDA/TARGET_UNO_91H/device/RDA5991H.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ typedef enum IRQn
7070
*/
7171

7272
/* Configuration of the Cortex-M4 Processor and Core Peripherals */
73-
#define __MPU_PRESENT 1 /*!< MPU present or not */
73+
#define __MPU_PRESENT 0 /*!< MPU present or not */
7474
#define __NVIC_PRIO_BITS 5 /*!< Number of Bits used for Priority Levels */
7575
#define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
7676
#define __FPU_PRESENT 1 /*!< FPU present */

targets/targets.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7920,7 +7920,21 @@
79207920
"extra_labels": ["RDA", "UNO_91H", "FLASH_CMSIS_ALGO"],
79217921
"supported_toolchains": ["ARM", "GCC_ARM", "IAR"],
79227922
"macros": ["TWO_RAM_REGIONS", "CMSIS_NVIC_VIRTUAL", "CMSIS_NVIC_VIRTUAL_HEADER_FILE=\"RDA5981_nvic_virtual.h\""],
7923-
"device_has": ["USTICKER", "PORTIN", "PORTOUT", "PORTINOUT", "INTERRUPTIN", "SERIAL", "STDIO_MESSAGES", "PWMOUT", "SPI", "SLEEP", "ANALOGIN", "FLASH", "TRNG", "MPU"],
7923+
"device_has": [
7924+
"USTICKER",
7925+
"PORTIN",
7926+
"PORTOUT",
7927+
"PORTINOUT",
7928+
"INTERRUPTIN",
7929+
"SERIAL",
7930+
"STDIO_MESSAGES",
7931+
"PWMOUT",
7932+
"SPI",
7933+
"SLEEP",
7934+
"ANALOGIN",
7935+
"FLASH",
7936+
"TRNG"
7937+
],
79247938
"release_versions": ["2", "5"]
79257939
},
79267940
"UNO_91H": {

0 commit comments

Comments
 (0)