Skip to content

Commit e13d151

Browse files
committed
hal:gd32e10x: temporary enable MPU flag.
temporary enable MPU flag to make compile success. Signed-off-by: YuLong Yao <[email protected]>
1 parent a4396dd commit e13d151

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gd32e10x/cmsis/gd/gd32e10x/include/gd32e10x.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ OF SUCH DAMAGE.
103103

104104
/* configuration of the Cortex-M4 processor and core peripherals */
105105
#define __CM4_REV 0x0001 /*!< Core revision r0p1 */
106-
#define __MPU_PRESENT 0 /*!< GD32E10x do not provide MPU */
106+
// todo: change __MPU_PRESENT to 0
107+
#define __MPU_PRESENT 1 /*!< GD32E10x do not provide MPU */
107108
#define __NVIC_PRIO_BITS 4 /*!< GD32E10x uses 4 bits for the priority levels */
108109
#define __Vendor_SysTickConfig 0 /*!< set to 1 if different sysTick config is used */
109110
#define __FPU_PRESENT 1 /*!< FPU present */

0 commit comments

Comments
 (0)