Home
last modified time | relevance | path

Searched refs:u32Reg (Results 1 – 10 of 10) sorted by relevance

/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/
Dtamper.c110 uint32_t u32Reg; in TAMPER_StaticTamperEnable() local
113 u32Reg = TAMPER->TIOCTL; in TAMPER_StaticTamperEnable()
122u32Reg &= ~((TAMPER_TIOCTL_TAMP0EN_Msk | TAMPER_TIOCTL_TAMP0LV_Msk | TAMPER_TIOCTL_TAMP0DBEN_Msk) … in TAMPER_StaticTamperEnable()
123 u32Reg |= (u32TmpReg << (i * 4UL)); in TAMPER_StaticTamperEnable()
127 TAMPER->TIOCTL = u32Reg; in TAMPER_StaticTamperEnable()
148 uint32_t u32Reg; in TAMPER_StaticTamperDisable() local
151 u32Reg = TAMPER->TIOCTL; in TAMPER_StaticTamperDisable()
159 u32Reg &= ~(u32TmpReg << (i * 4UL)); in TAMPER_StaticTamperDisable()
163 TAMPER->TIOCTL = u32Reg; in TAMPER_StaticTamperDisable()
193 uint32_t u32Reg; in TAMPER_DynamicTamperEnable() local
[all …]
Drtc.c807 uint32_t u32Reg; in RTC_StaticTamperEnable() local
810 u32Reg = RTC->TAMPCTL; in RTC_StaticTamperEnable()
819u32Reg &= ~((RTC_TAMPCTL_TAMP0EN_Msk | RTC_TAMPCTL_TAMP0LV_Msk | RTC_TAMPCTL_TAMP0DBEN_Msk) << (i … in RTC_StaticTamperEnable()
820 u32Reg |= (u32TmpReg << (i * 4UL)); in RTC_StaticTamperEnable()
824 RTC->TAMPCTL = u32Reg; in RTC_StaticTamperEnable()
846 uint32_t u32Reg; in RTC_StaticTamperDisable() local
849 u32Reg = RTC->TAMPCTL; in RTC_StaticTamperDisable()
857 u32Reg &= ~(u32TmpReg << (i * 4UL)); in RTC_StaticTamperDisable()
861 RTC->TAMPCTL = u32Reg; in RTC_StaticTamperDisable()
891 uint32_t u32Reg; in RTC_DynamicTamperEnable() local
[all …]
Dretarget.c258 uint32_t u32Reg; in ProcessHardFault() local
382 u32Reg = SCU->PVINTSTS; in ProcessHardFault()
383 if(u32Reg) in ProcessHardFault()
394 if(u32Reg & (1 << i)) in ProcessHardFault()
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/
Drtc.c827 uint32_t u32Reg; in RTC_StaticTamperEnable() local
831 u32Reg = RTC->TAMPCTL; in RTC_StaticTamperEnable()
840u32Reg &= ~((RTC_TAMPCTL_TAMP0EN_Msk | RTC_TAMPCTL_TAMP0LV_Msk | RTC_TAMPCTL_TAMP0DBEN_Msk) << (i … in RTC_StaticTamperEnable()
841 u32Reg |= (u32TmpReg << (i * 4UL)); in RTC_StaticTamperEnable()
846 RTC->TAMPCTL = u32Reg; in RTC_StaticTamperEnable()
868 uint32_t u32Reg; in RTC_StaticTamperDisable() local
872 u32Reg = RTC->TAMPCTL; in RTC_StaticTamperDisable()
880 u32Reg &= ~(u32TmpReg << (i * 4UL)); in RTC_StaticTamperDisable()
885 RTC->TAMPCTL = u32Reg; in RTC_StaticTamperDisable()
915 uint32_t u32Reg; in RTC_DynamicTamperEnable() local
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/common/bsp/StdDriver/src/
Dkeystore.c383 uint32_t u32Reg; in KS_GetRemainSize() local
386 u32Reg = KS->REMAIN; in KS_GetRemainSize()
389 u32SramRemain = (u32Reg & KS_REMAIN_RRMNG_Msk) >> KS_REMAIN_RRMNG_Pos; in KS_GetRemainSize()
390 u32FlashRemain = (u32Reg & KS_REMAIN_FRMNG_Msk) >> KS_REMAIN_FRMNG_Pos; in KS_GetRemainSize()
410 uint32_t u32Reg; in KS_GetRemainKeyCount() local
413 u32Reg = KS->REMKCNT; in KS_GetRemainKeyCount()
414 u32SramRemain = (u32Reg & KS_REMKCNT_RRMKCNT_Msk) >> KS_REMKCNT_RRMKCNT_Pos; in KS_GetRemainKeyCount()
415 u32FlashRemain = (u32Reg & KS_REMKCNT_FRMKCNT_Msk) >> KS_REMKCNT_FRMKCNT_Pos; in KS_GetRemainKeyCount()
Dsdh.c876 uint32_t volatile u32Reg; in SDH_Read() local
914 u32Reg = sdh->CTL & ~SDH_CTL_CMDCODE_Msk; in SDH_Read()
915 u32Reg = u32Reg | 0xff0000UL; /* set BLK_CNT to 255 */ in SDH_Read()
918 … sdh->CTL = u32Reg | (18UL << 8) | (SDH_CTL_COEN_Msk | SDH_CTL_RIEN_Msk | SDH_CTL_DIEN_Msk); in SDH_Read()
923 sdh->CTL = u32Reg | SDH_CTL_DIEN_Msk; in SDH_Read()
955 u32Reg = sdh->CTL & (~SDH_CTL_CMDCODE_Msk); in SDH_Read()
956 u32Reg = u32Reg & (~SDH_CTL_BLKCNT_Msk); in SDH_Read()
958 u32Reg |= u32RegTmp; /* setup SDCR_BLKCNT */ in SDH_Read()
962 … sdh->CTL = u32Reg | (18UL << 8) | (SDH_CTL_COEN_Msk | SDH_CTL_RIEN_Msk | SDH_CTL_DIEN_Msk); in SDH_Read()
967 sdh->CTL = u32Reg | SDH_CTL_DIEN_Msk; in SDH_Read()
[all …]
Dsc.c127 uint32_t u32Reg = 0UL, u32Intf; in SC_Open() local
144 u32Reg = u32CardDet ? 0UL : SC_CTL_CDLV_Msk; in SC_Open()
154 sc->CTL = SC_CTL_SCEN_Msk | SC_CTL_TMRSEL_Msk | u32Reg; in SC_Open()
301 uint32_t u32Reg = u32Mode | (SC_TMRCTL0_CNT_Msk & (u32ETUCount - 1UL)); in SC_StartTimer() local
306 sc->TMRCTL0 = u32Reg; in SC_StartTimer()
312 sc->TMRCTL1 = u32Reg; in SC_StartTimer()
318 sc->TMRCTL2 = u32Reg; in SC_StartTimer()
Di2s.c176 uint32_t u32SrcClk, u32Reg, u32Clock; in I2S_EnableMCLK() local
192 u32Reg = i2s->CLKDIV & I2S_CLKDIV_MCLKDIV_Msk; in I2S_EnableMCLK()
194 if(u32Reg == 0UL) in I2S_EnableMCLK()
200 u32Clock = ((u32SrcClk >> 1UL) / u32Reg); in I2S_EnableMCLK()
Di2c.c110 uint32_t u32Reg = 0u; in I2C_Trigger() local
114 u32Reg |= I2C_CTL_STA; in I2C_Trigger()
118 u32Reg |= I2C_CTL_STO; in I2C_Trigger()
122 u32Reg |= I2C_CTL_SI; in I2C_Trigger()
126 u32Reg |= I2C_CTL_AA; in I2C_Trigger()
129 i2c->CTL0 = (i2c->CTL0 & ~0x3Cu) | u32Reg; in I2C_Trigger()
Dusci_i2c.c116 uint32_t u32Reg = 0u; in UI2C_Trigger() local
121 u32Reg |= UI2C_PROTCTL_STA_Msk; in UI2C_Trigger()
125 u32Reg |= UI2C_PROTCTL_STO_Msk; in UI2C_Trigger()
129 u32Reg |= UI2C_PROTCTL_PTRG_Msk; in UI2C_Trigger()
133 u32Reg |= UI2C_PROTCTL_AA_Msk; in UI2C_Trigger()
135 ui2c->PROTCTL = u32Val | u32Reg; in UI2C_Trigger()