diff --git a/targets/TARGET_NUVOTON/TARGET_M2351/device/partition_M2351.h b/targets/TARGET_NUVOTON/TARGET_M2351/device/partition_M2351.h index fd533d2066..dfb55de252 100644 --- a/targets/TARGET_NUVOTON/TARGET_M2351/device/partition_M2351.h +++ b/targets/TARGET_NUVOTON/TARGET_M2351/device/partition_M2351.h @@ -326,7 +326,7 @@ // PWM1_P2 <0=> Secure <1=> Non-Secure // */ -#define NVIC_INIT_ITNS0_VAL 0x3F0040 +#define NVIC_INIT_ITNS0_VAL 0xFFFFFFBF /* Initialize ITNS 1 (Interrupts 0..31) @@ -367,7 +367,7 @@ // */ -#define NVIC_INIT_ITNS1_VAL 0x1C +#define NVIC_INIT_ITNS1_VAL 0xFFFFFEFC /* Initialize ITNS 2 (Interrupts 0..31) @@ -408,7 +408,7 @@ // */ -#define NVIC_INIT_ITNS2_VAL 0x000 +#define NVIC_INIT_ITNS2_VAL 0xFFFFFF7F /* @@ -423,7 +423,7 @@ // LCD <0=> Secure <1=> Non-Secure // TRNG <0=> Secure <1=> Non-Secure */ -#define NVIC_INIT_ITNS3_VAL 0x0 +#define NVIC_INIT_ITNS3_VAL 0xFFFFFFFF @@ -556,7 +556,7 @@ __STATIC_INLINE void TZ_SAU_Setup(void) // EBI <0=> Secure <1=> Non-Secure // PDMA1 <0=> Secure <1=> Non-Secure */ -#define SCU_INIT_PNSSET0_VAL 0x00000001 +#define SCU_INIT_PNSSET0_VAL 0xFFFFFFFF /* PNSSET1 */ @@ -565,7 +565,7 @@ __STATIC_INLINE void TZ_SAU_Setup(void) // CRC <0=> Secure <1=> Non-Secure // CRPT <0=> Secure <1=> Non-Secure */ -#define SCU_INIT_PNSSET1_VAL 0x00040000 +#define SCU_INIT_PNSSET1_VAL 0xFFFBFFFF /* PNSSET2 */ @@ -584,7 +584,7 @@ __STATIC_INLINE void TZ_SAU_Setup(void) // BPWM0 <0=> Secure <1=> Non-Secure // BPWM1 <0=> Secure <1=> Non-Secure */ -#define SCU_INIT_PNSSET2_VAL 0x00020002 +#define SCU_INIT_PNSSET2_VAL 0xFFFFFFFD /* PNSSET3 */ @@ -603,7 +603,7 @@ __STATIC_INLINE void TZ_SAU_Setup(void) // UART4 <0=> Secure <1=> Non-Secure // UART5 <0=> Secure <1=> Non-Secure */ -#define SCU_INIT_PNSSET3_VAL 0x00010000 +#define SCU_INIT_PNSSET3_VAL 0xFFFFFFFF /* PNSSET4 */ @@ -616,7 +616,7 @@ __STATIC_INLINE void TZ_SAU_Setup(void) // SC1 <0=> Secure <1=> Non-Secure // SC2 <0=> Secure <1=> Non-Secure */ -#define SCU_INIT_PNSSET4_VAL 0x00000000 +#define SCU_INIT_PNSSET4_VAL 0xFFFFFFFF /* PNSSET5 */ @@ -631,7 +631,7 @@ __STATIC_INLINE void TZ_SAU_Setup(void) // LCD <0=> Secure <1=> Non-Secure // TRNG <0=> Secure <1=> Non-Secure */ -#define SCU_INIT_PNSSET5_VAL 0x00000000 +#define SCU_INIT_PNSSET5_VAL 0xFFFFFFFF /* PNSSET6 */ @@ -641,7 +641,7 @@ __STATIC_INLINE void TZ_SAU_Setup(void) // USCI0 <0=> Secure <1=> Non-Secure // USCI1 <0=> Secure <1=> Non-Secure */ -#define SCU_INIT_PNSSET6_VAL 0x00000000 +#define SCU_INIT_PNSSET6_VAL 0xFFFFFFFF /* // */ @@ -665,7 +665,7 @@ __STATIC_INLINE void TZ_SAU_Setup(void) // PF <0=> Secure <1=> Non-Secure // PG <0=> Secure <1=> Non-Secure */ -#define SCU_INIT_IONSSET_VAL 0x0000007F +#define SCU_INIT_IONSSET_VAL 0xFFFFFFFF /* // */