Home
last modified time | relevance | path

Searched refs:__PC (Results 1 – 21 of 21) sorted by relevance

/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/inc/
Dotg.h65 #define OTG_ENABLE() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->CTL |= OTG_CTL_OTGEN_Msk):(O…
73 #define OTG_DISABLE() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->CTL &= ~OTG_CTL_OTGEN_Msk):…
82 #define OTG_ENABLE_PHY() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL |= OTG_PHYCTL_OTG…
90 #define OTG_DISABLE_PHY() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL &= ~OTG_PHYCTL_O…
98 #define OTG_ENABLE_ID_DETECT() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL |= OTG_PHYC…
106 #define OTG_DISABLE_ID_DETECT() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL &= ~OTG_PH…
114 #define OTG_ENABLE_WAKEUP() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->CTL |= OTG_CTL_WKEN_M…
122 #define OTG_DISABLE_WAKEUP() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->CTL &= ~OTG_CTL_WKEN…
132 #define OTG_SET_VBUS_EN_POL(u32Pol) (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL = (OTG…
142 #define OTG_SET_VBUS_STS_POL(u32Pol) (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL = (OT…
[all …]
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/inc/
Dotg.h65 #define OTG_ENABLE() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->CTL |= OTG_CTL_OTGEN_Msk):(O…
73 #define OTG_DISABLE() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->CTL &= ~OTG_CTL_OTGEN_Msk):…
82 #define OTG_ENABLE_PHY() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL |= OTG_PHYCTL_OTG…
90 #define OTG_DISABLE_PHY() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL &= ~OTG_PHYCTL_O…
98 #define OTG_ENABLE_ID_DETECT() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL |= OTG_PHYC…
106 #define OTG_DISABLE_ID_DETECT() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL &= ~OTG_PH…
114 #define OTG_ENABLE_WAKEUP() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->CTL |= OTG_CTL_WKEN_M…
122 #define OTG_DISABLE_WAKEUP() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->CTL &= ~OTG_CTL_WKEN…
132 #define OTG_SET_VBUS_EN_POL(u32Pol) (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL = (OTG…
142 #define OTG_SET_VBUS_STS_POL(u32Pol) (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL = (OT…
[all …]
Dusbd.h53 #define USBD_BUF_BASE (uint32_t)(((__PC() & NS_OFFSET) == NS_OFFSET)? (USBD_BASE+NS_OFFSET+0x1…
230 #define USBD_ENABLE_USB() (((__PC() & NS_OFFSET) == NS_OFFSET)? ((uint32_t)(USBD_NS->ATTR…
242 #define USBD_DISABLE_USB() (((__PC() & NS_OFFSET) == NS_OFFSET)? ((uint32_t)(USBD_NS->ATTR…
254 #define USBD_ENABLE_PHY() (((__PC() & NS_OFFSET) == NS_OFFSET)? ((uint32_t)(USBD_NS->ATTR…
266 #define USBD_DISABLE_PHY() (((__PC() & NS_OFFSET) == NS_OFFSET)? ((uint32_t)(USBD_NS->ATTR…
278 #define USBD_SET_SE0() (((__PC() & NS_OFFSET) == NS_OFFSET)? ((uint32_t)(USBD_NS->SE0 …
290 #define USBD_CLR_SE0() (((__PC() & NS_OFFSET) == NS_OFFSET)? ((uint32_t)(USBD_NS->SE0 …
302 #define USBD_SET_ADDR(addr) (((__PC() & NS_OFFSET) == NS_OFFSET)? (USBD_NS->FADDR = (addr))…
314 #define USBD_GET_ADDR() (((__PC() & NS_OFFSET) == NS_OFFSET)? ((uint32_t)(USBD_NS->FADD…
329 #define USBD_ENABLE_INT(intr) (((__PC() & NS_OFFSET) == NS_OFFSET)? (USBD_NS->INTEN |= (intr)…
[all …]
Dfmc.h36 #define FMC_ISP ( (__PC() & 0x10000000) ? FMC_NS : FMC)
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/common/bsp/StdDriver/inc/
Dotg.h65 #define OTG_ENABLE() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->CTL |= OTG_CTL_OTGEN_Msk):(O…
73 #define OTG_DISABLE() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->CTL &= ~OTG_CTL_OTGEN_Msk):…
82 #define OTG_ENABLE_PHY() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL |= OTG_PHYCTL_OTG…
90 #define OTG_DISABLE_PHY() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL &= ~OTG_PHYCTL_O…
98 #define OTG_ENABLE_ID_DETECT() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL |= OTG_PHYC…
106 #define OTG_DISABLE_ID_DETECT() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL &= ~OTG_PH…
114 #define OTG_ENABLE_WAKEUP() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->CTL |= OTG_CTL_WKEN_M…
122 #define OTG_DISABLE_WAKEUP() (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->CTL &= ~OTG_CTL_WKEN…
132 #define OTG_SET_VBUS_EN_POL(u32Pol) (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL = (OTG…
142 #define OTG_SET_VBUS_STS_POL(u32Pol) (((__PC() & NS_OFFSET) == NS_OFFSET)? (OTG_NS->PHYCTL = (OT…
[all …]
Dusbd.h53 #define USBD_BUF_BASE (uint32_t)(((__PC() & NS_OFFSET) == NS_OFFSET)? (USBD_BASE+NS_OFFSET+0x1…
230 #define USBD_ENABLE_USB() (((__PC() & NS_OFFSET) == NS_OFFSET)? ((uint32_t)(USBD_NS->ATTR…
242 #define USBD_DISABLE_USB() (((__PC() & NS_OFFSET) == NS_OFFSET)? ((uint32_t)(USBD_NS->ATTR…
254 #define USBD_ENABLE_PHY() (((__PC() & NS_OFFSET) == NS_OFFSET)? ((uint32_t)(USBD_NS->ATTR…
266 #define USBD_DISABLE_PHY() (((__PC() & NS_OFFSET) == NS_OFFSET)? ((uint32_t)(USBD_NS->ATTR…
278 #define USBD_SET_SE0() (((__PC() & NS_OFFSET) == NS_OFFSET)? ((uint32_t)(USBD_NS->SE0 …
290 #define USBD_CLR_SE0() (((__PC() & NS_OFFSET) == NS_OFFSET)? ((uint32_t)(USBD_NS->SE0 …
302 #define USBD_SET_ADDR(addr) (((__PC() & NS_OFFSET) == NS_OFFSET)? (USBD_NS->FADDR = (addr))…
314 #define USBD_GET_ADDR() (((__PC() & NS_OFFSET) == NS_OFFSET)? ((uint32_t)(USBD_NS->FADD…
329 #define USBD_ENABLE_INT(intr) (((__PC() & NS_OFFSET) == NS_OFFSET)? (USBD_NS->INTEN |= (intr)…
[all …]
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/common/bsp/StdDriver/src/
Ddpm.c37 if(__PC()&NS_OFFSET) dpm = DPM_NS; in DPM_SetDebugDisable()
65 if(__PC()&NS_OFFSET) dpm = DPM_NS; in DPM_SetDebugLock()
96 if(__PC()&NS_OFFSET) dpm = DPM_NS; in DPM_GetDebugDisable()
129 if(__PC()&NS_OFFSET) dpm = DPM_NS; in DPM_GetDebugLock()
161 if(__PC()&NS_OFFSET) dpm = DPM_NS; in DPM_SetPasswordUpdate()
224 if(__PC()&NS_OFFSET) dpm = DPM_NS; in DPM_SetPasswordCompare()
288 if(__PC()&NS_OFFSET) dpm = DPM_NS; in DPM_GetPasswordErrorFlag()
334 if(__PC()&NS_OFFSET) dpm = DPM_NS; in DPM_ClearPasswordErrorFlag()
361 if(__PC()&NS_OFFSET) dpm = DPM_NS; in DPM_EnableDebuggerWriteAccess()
388 if(__PC()&NS_OFFSET) dpm = DPM_NS; in DPM_DisableDebuggerWriteAccess()
Debi.c63 if((__PC()&NS_OFFSET) == NS_OFFSET) in EBI_Open()
168 if((__PC()&NS_OFFSET) == NS_OFFSET) in EBI_Close()
211 if((__PC()&NS_OFFSET) == NS_OFFSET) in EBI_SetBusTiming()
Dspi.c81 if(!(__PC() & NS_OFFSET)) in SPI_Open()
231 if(!(__PC() & NS_OFFSET)) in SPI_Open()
427 if(!(__PC() & NS_OFFSET)) in SPI_SetBusClock()
1224 if(!(__PC() & NS_OFFSET)) in SPII2S_Open()
1289 if(!(__PC() & NS_OFFSET)) in SPII2S_Open()
1323 if(!(__PC() & NS_OFFSET)) in SPII2S_Open()
1357 if(!(__PC() & NS_OFFSET)) in SPII2S_Open()
1391 if(!(__PC() & NS_OFFSET)) in SPII2S_Open()
Dusbd.c75 if((__PC() & NS_OFFSET) == NS_OFFSET) in USBD_Open()
323 if((__PC() & NS_OFFSET) == NS_OFFSET) in USBD_StandardRequest()
689 if((__PC() & NS_OFFSET) == NS_OFFSET) in USBD_SwReset()
Di2s.c99 if(!(__PC() & NS_OFFSET)) in I2S_Open()
Dsdh.c273 if(!(__PC() & (1UL << 28))) in SDH_Set_clock()
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2354/bsp/Device/Nuvoton/M2354/Include/
DM2354.h1012 #define PA ( (__PC() & NS_OFFSET) ? PA_NS : PA_S)
1013 #define PB ( (__PC() & NS_OFFSET) ? PB_NS : PB_S)
1014 #define PC ( (__PC() & NS_OFFSET) ? PC_NS : PC_S)
1015 #define PD ( (__PC() & NS_OFFSET) ? PD_NS : PD_S)
1016 #define PE ( (__PC() & NS_OFFSET) ? PE_NS : PE_S)
1017 #define PF ( (__PC() & NS_OFFSET) ? PF_NS : PF_S)
1018 #define PG ( (__PC() & NS_OFFSET) ? PG_NS : PG_S)
1019 #define PH ( (__PC() & NS_OFFSET) ? PH_NS : PH_S)
Dsystem_M2354.h83 extern uint32_t __PC(void); /*!< Return the current program counter value */
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2351/bsp/Device/Nuvoton/M2351/Include/
Dsystem_M2351.h83 extern uint32_t __PC(void); /*!< Return the current program counter value */
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/
Dqspi.c74 if(!(__PC() & NS_OFFSET)) in QSPI_Open()
155 if(!(__PC() & NS_OFFSET)) in QSPI_Open()
282 if(!(__PC() & NS_OFFSET)) in QSPI_SetBusClock()
Drtc.c92 if((__PC()&NS_OFFSET) == 0) in RTC_Close()
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/
Dqspi.c74 if(!(__PC() & NS_OFFSET)) in QSPI_Open()
155 if(!(__PC() & NS_OFFSET)) in QSPI_Open()
282 if(!(__PC() & NS_OFFSET)) in QSPI_SetBusClock()
Drtc.c90 if((__PC()&NS_OFFSET) != NS_OFFSET) in RTC_Close()
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2351/device/source/
Dstartup_m2351.c302 uint32_t __PC() in __PC() function
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2354/device/source/
Dstartup_m2354.c301 uint32_t __PC() in __PC() function