Home
last modified time | relevance | path

Searched refs:port (Results 1 – 3 of 3) sorted by relevance

/hal_nuvoton-3.4.0/m48x/StdDriver/src/
Dgpio.c39 void GPIO_SetMode(GPIO_T *port, uint32_t u32PinMask, uint32_t u32Mode) in GPIO_SetMode() argument
47 port->MODE = (port->MODE & ~(0x3ul << (i << 1))) | (u32Mode << (i << 1)); in GPIO_SetMode()
67 void GPIO_EnableInt(GPIO_T *port, uint32_t u32Pin, uint32_t u32IntAttribs) in GPIO_EnableInt() argument
69 port->INTTYPE = (port->INTTYPE&~(1ul<<u32Pin)) | (((u32IntAttribs >> 24) & 0xFFUL) << u32Pin); in GPIO_EnableInt()
70 port->INTEN = (port->INTEN&~(0x00010001ul<<u32Pin)) | ((u32IntAttribs & 0xFFFFFFUL) << u32Pin); in GPIO_EnableInt()
87 void GPIO_DisableInt(GPIO_T *port, uint32_t u32Pin) in GPIO_DisableInt() argument
89 port->INTTYPE &= ~(1UL << u32Pin); in GPIO_DisableInt()
90 port->INTEN &= ~((0x00010001UL) << u32Pin); in GPIO_DisableInt()
106 void GPIO_SetSlewCtl(GPIO_T *port, uint32_t u32PinMask, uint32_t u32Mode) in GPIO_SetSlewCtl() argument
114 port->SLEWCTL = (port->SLEWCTL & ~(0x3ul << (i << 1))) | (u32Mode << (i << 1)); in GPIO_SetSlewCtl()
[all …]
/hal_nuvoton-3.4.0/m48x/StdDriver/inc/
Dgpio.h115 #define GPIO_PIN_DATA(port, pin) (*((volatile uint32_t *)((GPIO_PIN_DATA_BASE+(0x40*(port))) + (… argument
257 #define GPIO_CLR_INT_FLAG(port, u32PinMask) ((port)->INTSRC = (u32PinMask)) argument
273 #define GPIO_DISABLE_DEBOUNCE(port, u32PinMask) ((port)->DBEN &= ~(u32PinMask)) argument
288 #define GPIO_ENABLE_DEBOUNCE(port, u32PinMask) ((port)->DBEN |= (u32PinMask)) argument
304 #define GPIO_DISABLE_DIGITAL_PATH(port, u32PinMask) ((port)->DINOFF |= ((u32PinMask)<<16)) argument
320 #define GPIO_ENABLE_DIGITAL_PATH(port, u32PinMask) ((port)->DINOFF &= ~((u32PinMask)<<16)) argument
336 #define GPIO_DISABLE_DOUT_MASK(port, u32PinMask) ((port)->DATMSK &= ~(u32PinMask)) argument
352 #define GPIO_ENABLE_DOUT_MASK(port, u32PinMask) ((port)->DATMSK |= (u32PinMask)) argument
369 #define GPIO_GET_INT_FLAG(port, u32PinMask) ((port)->INTSRC & (u32PinMask)) argument
414 #define GPIO_GET_IN_DATA(port) ((port)->PIN) argument
[all …]
/hal_nuvoton-3.4.0/m48x/Devices/M480/Include/
DM480.h501 #define outpw(port,value) *((volatile unsigned int *)(port)) = (value) argument
509 #define inpw(port) (*((volatile unsigned int *)(port))) argument
518 #define outps(port,value) *((volatile unsigned short *)(port)) = (value) argument
526 #define inps(port) (*((volatile unsigned short *)(port))) argument
534 #define outpb(port,value) *((volatile unsigned char *)(port)) = (value) argument
541 #define inpb(port) (*((volatile unsigned char *)(port))) argument
550 #define outp32(port,value) *((volatile unsigned int *)(port)) = (value) argument
558 #define inp32(port) (*((volatile unsigned int *)(port))) argument
567 #define outp16(port,value) *((volatile unsigned short *)(port)) = (value) argument
575 #define inp16(port) (*((volatile unsigned short *)(port))) argument
[all …]