Home
last modified time | relevance | path

Searched refs:GPIO (Results 1 – 14 of 14) sorted by relevance

/hal_ambiq-3.7.0/mcu/apollo4p/hal/
Dam_hal_gpio.c73 #define AM_HAL_GPIO_CONFIGn(n) (((uint32_t *)(&GPIO))[n])
153 volatile uint32_t *pui32Config = &GPIO->PINCFG0; in am_hal_gpio_pinconfig_get()
197 volatile uint32_t *pui32Config = &GPIO->PINCFG0; in am_hal_gpio_pinconfig()
220 GPIO->PADKEY = GPIO_PADKEY_PADKEY_Key; in am_hal_gpio_pinconfig()
230 GPIO->PADKEY = 0; in am_hal_gpio_pinconfig()
419 ui32RegAddr = (uint32_t)&GPIO->MCUN0INT0EN + (ui32Idx * GPIO_INTX_DELTA); in am_hal_gpio_interrupt_control()
452 GPIO->MCUN0INT0EN &= ~pGpioIntMask->U.Msk[0]; in am_hal_gpio_interrupt_control()
453 GPIO->MCUN0INT1EN &= ~pGpioIntMask->U.Msk[1]; in am_hal_gpio_interrupt_control()
454 GPIO->MCUN0INT2EN &= ~pGpioIntMask->U.Msk[2]; in am_hal_gpio_interrupt_control()
455 GPIO->MCUN0INT3EN &= ~pGpioIntMask->U.Msk[3]; in am_hal_gpio_interrupt_control()
[all …]
Dam_hal_gpio.h764 #define AM_HAL_GPIO_RDn(pin) ((volatile uint32_t *)&GPIO->RD0 + (((pin) >> 5) & 0x3))
765 #define AM_HAL_GPIO_WTn(pin) ((volatile uint32_t *)&GPIO->WT0 + (((pin) >> 5) & 0x3))
766 #define AM_HAL_GPIO_WTCn(pin) ((volatile uint32_t *)&GPIO->WTC0 + (((pin) >> 5) & 0x3))
767 #define AM_HAL_GPIO_WTSn(pin) ((volatile uint32_t *)&GPIO->WTS0 + (((pin) >> 5) & 0x3))
768 #define AM_HAL_GPIO_ENn(pin) ((volatile uint32_t *)&GPIO->EN0 + (((pin) >> 5) & 0x3))
769 #define AM_HAL_GPIO_ENCn(pin) ((volatile uint32_t *)&GPIO->ENC0 + (((pin) >> 5) & 0x3))
770 #define AM_HAL_GPIO_ENSn(pin) ((volatile uint32_t *)&GPIO->ENS0 + (((pin) >> 5) & 0x3))
871 #define am_hal_gpio_cd_pin_config(n) GPIO->SDIFCDWP_b.SDIFCD = n;
872 #define am_hal_gpio_wp_pin_config(n) GPIO->SDIFCDWP_b.SDIFWP = n;
880 volatile uint32_t *pui32Config = &GPIO->PINCFG0; \
[all …]
/hal_ambiq-3.7.0/mcu/apollo3/hal/
Dam_hal_gpio.c414 ui32GPCfgAddr = AM_REGADDR(GPIO, CFGA) + ((ui32GpioNum >> 1) & ~0x3); in am_hal_gpio_pinconfig_get()
415 ui32PadregAddr = AM_REGADDR(GPIO, PADREGA) + (ui32GpioNum & ~0x3); in am_hal_gpio_pinconfig_get()
416 ui32AltpadAddr = AM_REGADDR(GPIO, ALTPADCFGA) + (ui32GpioNum & ~0x3); in am_hal_gpio_pinconfig_get()
703 ui32GPCfgAddr = AM_REGADDR(GPIO, CFGA) + ((ui32Pin >> 1) & ~0x3); in am_hal_gpio_pinconfig()
704 ui32PadregAddr = AM_REGADDR(GPIO, PADREGA) + (ui32Pin & ~0x3); in am_hal_gpio_pinconfig()
705 ui32AltpadAddr = AM_REGADDR(GPIO, ALTPADCFGA) + (ui32Pin & ~0x3); in am_hal_gpio_pinconfig()
729 GPIO->PADKEY = GPIO_PADKEY_PADKEY_Key; in am_hal_gpio_pinconfig()
735 GPIO->PADKEY = 0; in am_hal_gpio_pinconfig()
875 ui32Regval = AM_REGVAL( AM_REGADDR(GPIO, PADREGA) + (ui32Pin & ~0x3) ); in am_hal_gpio_state_read()
899 ui32ReadValue = AM_REGVAL(AM_REGADDR(GPIO, RDA) + ui32BaseAddr); in am_hal_gpio_state_read()
[all …]
Dam_hal_gpio.h799 #define AM_HAL_GPIO_RDn(pin) ((volatile uint32_t *)&GPIO->RDA + (((pin) >> 5) & 0x1))
800 #define AM_HAL_GPIO_WTn(pin) ((volatile uint32_t *)&GPIO->WTA + (((pin) >> 5) & 0x1))
801 #define AM_HAL_GPIO_WTCn(pin) ((volatile uint32_t *)&GPIO->WTCA + (((pin) >> 5) & 0x1))
802 #define AM_HAL_GPIO_WTSn(pin) ((volatile uint32_t *)&GPIO->WTSA + (((pin) >> 5) & 0x1))
803 #define AM_HAL_GPIO_ENn(pin) ((volatile uint32_t *)&GPIO->ENA + (((pin) >> 5) & 0x1))
804 #define AM_HAL_GPIO_ENCn(pin) ((volatile uint32_t *)&GPIO->ENCA + (((pin) >> 5) & 0x1))
805 #define AM_HAL_GPIO_ENSn(pin) ((volatile uint32_t *)&GPIO->ENSA + (((pin) >> 5) & 0x1))
868 ((AM_REGADDR(GPIO, WTCA) + (((uint32_t)(n) & 0x20) >> 3))))) = \
873 ((AM_REGADDR(GPIO, WTSA) + (((uint32_t)(n) & 0x20) >> 3))))) = \
881 ((AM_REGADDR(GPIO, WTA) + (((uint32_t)(n) & 0x20) >> 3))))) ^= \
[all …]
Dam_hal_stimer.c295 GPIO->STMRCAP_b.STPOL0 = bPolarity; in am_hal_stimer_capture_start()
296 GPIO->STMRCAP_b.STSEL0 = ui32GPIONumber; in am_hal_stimer_capture_start()
300 GPIO->STMRCAP_b.STPOL1 = bPolarity; in am_hal_stimer_capture_start()
301 GPIO->STMRCAP_b.STSEL1 = ui32GPIONumber; in am_hal_stimer_capture_start()
305 GPIO->STMRCAP_b.STPOL2 = bPolarity; in am_hal_stimer_capture_start()
306 GPIO->STMRCAP_b.STSEL2 = ui32GPIONumber; in am_hal_stimer_capture_start()
310 GPIO->STMRCAP_b.STPOL3 = bPolarity; in am_hal_stimer_capture_start()
311 GPIO->STMRCAP_b.STSEL3 = ui32GPIONumber; in am_hal_stimer_capture_start()
Dam_hal_ctimer.c1337 GPIO->CTENCFG &= ~(1 << ui32Ctx); in am_hal_ctimer_output_config()
/hal_ambiq-3.7.0/mcu/apollo3p/hal/
Dam_hal_gpio.c468 ui32GPCfgAddr = AM_REGADDR(GPIO, CFGA) + ((ui32GpioNum >> 1) & ~0x3); in am_hal_gpio_pinconfig_get()
469 ui32PadregAddr = AM_REGADDR(GPIO, PADREGA) + (ui32GpioNum & ~0x3); in am_hal_gpio_pinconfig_get()
470 ui32AltpadAddr = AM_REGADDR(GPIO, ALTPADCFGA) + (ui32GpioNum & ~0x3); in am_hal_gpio_pinconfig_get()
775 ui32GPCfgAddr = AM_REGADDR(GPIO, CFGA) + ((ui32Pin >> 1) & ~0x3); in am_hal_gpio_pinconfig()
776 ui32PadregAddr = AM_REGADDR(GPIO, PADREGA) + (ui32Pin & ~0x3); in am_hal_gpio_pinconfig()
777 ui32AltpadAddr = AM_REGADDR(GPIO, ALTPADCFGA) + (ui32Pin & ~0x3); in am_hal_gpio_pinconfig()
801 GPIO->PADKEY = GPIO_PADKEY_PADKEY_Key; in am_hal_gpio_pinconfig()
807 GPIO->PADKEY = 0; in am_hal_gpio_pinconfig()
957 ui32Regval = AM_REGVAL( AM_REGADDR(GPIO, PADREGA) + (ui32Pin & ~0x3) ); in am_hal_gpio_state_read()
981 ui32ReadValue = AM_REGVAL(AM_REGADDR(GPIO, RDA) + ui32BaseAddr); in am_hal_gpio_state_read()
[all …]
Dam_hal_gpio.h871 #define AM_HAL_GPIO_RDn(pin) ((volatile uint32_t *)&GPIO->RDA + (((pin) >> 5) & 0x3))
872 #define AM_HAL_GPIO_WTn(pin) ((volatile uint32_t *)&GPIO->WTA + (((pin) >> 5) & 0x3))
873 #define AM_HAL_GPIO_WTCn(pin) ((volatile uint32_t *)&GPIO->WTCA + (((pin) >> 5) & 0x3))
874 #define AM_HAL_GPIO_WTSn(pin) ((volatile uint32_t *)&GPIO->WTSA + (((pin) >> 5) & 0x3))
875 #define AM_HAL_GPIO_ENn(pin) ((volatile uint32_t *)&GPIO->ENA + (((pin) >> 5) & 0x3))
876 #define AM_HAL_GPIO_ENCn(pin) ((volatile uint32_t *)&GPIO->ENCA + (((pin) >> 5) & 0x3))
877 #define AM_HAL_GPIO_ENSn(pin) ((volatile uint32_t *)&GPIO->ENSA + (((pin) >> 5) & 0x3))
942 ((AM_REGADDR(GPIO, WTCA) + (((uint32_t)(n) & 0x60) >> 3))))) = \
947 ((AM_REGADDR(GPIO, WTSA) + (((uint32_t)(n) & 0x60) >> 3))))) = \
955 ((AM_REGADDR(GPIO, WTA) + (((uint32_t)(n) & 0x60) >> 3))))) ^= \
[all …]
Dam_hal_stimer.c302 GPIO->STMRCAP_b.STPOL0 = bPolarity; in am_hal_stimer_capture_start()
303 GPIO->STMRCAP_b.STSEL0 = ui32GPIONumber; in am_hal_stimer_capture_start()
307 GPIO->STMRCAP_b.STPOL1 = bPolarity; in am_hal_stimer_capture_start()
308 GPIO->STMRCAP_b.STSEL1 = ui32GPIONumber; in am_hal_stimer_capture_start()
312 GPIO->STMRCAP_b.STPOL2 = bPolarity; in am_hal_stimer_capture_start()
313 GPIO->STMRCAP_b.STSEL2 = ui32GPIONumber; in am_hal_stimer_capture_start()
317 GPIO->STMRCAP_b.STPOL3 = bPolarity; in am_hal_stimer_capture_start()
318 GPIO->STMRCAP_b.STSEL3 = ui32GPIONumber; in am_hal_stimer_capture_start()
Dam_hal_ctimer.c1374 GPIO->CTENCFG &= ~(1 << ui32Ctx); in am_hal_ctimer_output_config()
/hal_ambiq-3.7.0/CMSIS/AmbiqMicro/Include/
Dapollo3.h9312 #define GPIO ((GPIO_Type*) GPIO_BASE) macro
Dapollo3p.h10227 #define GPIO ((GPIO_Type*) GPIO_BASE) macro
Dapollo4b_generic.h27224 #define GPIO ((GPIO_Type*) GPIO_BASE) macro
Dapollo4p.h27750 #define GPIO ((GPIO_Type*) GPIO_BASE) macro