36 #define LED0_PIN_ID 25u
37 #define LED0_ON gpio_set(LED0_PIN_ID)
38 #define LED0_OFF gpio_clear(LED0_PIN_ID)
39 #define LED0_TOGGLE gpio_toggle(LED0_PIN_ID)
40 #define LED0_NAME "LED(Green)"
43 #define OSC_DEBUG_PIN_ID 15u
46 #define RESET_PLL_SYS (1u << 14u)
49 #define RESET_PADS_BANK0 (1u << 9u)
52 #define RESET_UART0 (1u << 26u)
55 #define RESET_UART1 (1u << 27u)
58 #define RESET_IO_BANK0 (1u << 6u)
61 #define PADS_BANK0_GPIO0_IE_BITS (1u << 6u)
64 #define PADS_BANK0_ISO_BITS (1u << 8u)
80 return PADS_BANK0_BASE + 4 * (pin + 1);
90 return IO_BANK0_BASE + 8 * pin;
Clock configuration for the RP2350.
Low-level GPIO peripheral driver interface definitions.
GPIO configuration for the RP2350.
unsigned int gpio_t
GPIO type identifier.
Helper functions for atomic register operations.
static uint32_t calculate_gpio_io_status_register_addr(gpio_t pin)
Calculate the address of the GPIO IO status register for a given pin.
static uint32_t calculate_gpio_pad_register_addr(gpio_t pin)
Calculate the address of the GPIO pad register for a given pin.
static uint32_t calculate_gpio_io_ctrl_register_addr(gpio_t pin)
Calculate the address of the GPIO IO control register for a given pin.
UART configuration for the RP2350.