32#define GPIO_T_ADDR_BASE(pin) (GPIOA_BASE + ((pin) & 0xf000u)) 
   37#define GPIO_T_ADDR(pin) ((GPIO_Type *)(GPIO_T_ADDR_BASE(pin))) 
   44#define GPIO_T_PORT(pin) ((gpio_t)(pin) >> 12u) 
   49#define GPIO_T_PIN(pin) ((pin) & 0x00ffu) 
   51#if defined(GPIOB_BASE) && (GPIO_T_ADDR_BASE(GPIO_PIN(1, 1)) != GPIOB_BASE) 
   52#error "GPIO_T_ADDR(GPIO_PIN(1, x)) must be the GPIOB address" 
   58#define GPIO_T_IS_HWCS(pin) (((pin) & 0xff00u) == 0x8000) 
   63#define GPIO_T_HWCS(pin) ((pin) & 0x0003u) 
void gpio_init_mux(gpio_t pin, uint32_t func)
Configure the pin mux to the given function.
 
CPU specific definitions for internal peripheral handling.