Peripheral CPU definitions for the RP2350. More...
Peripheral CPU definitions for the RP2350.
Definition in file periph_cpu.h.
#include <inttypes.h>#include "cpu.h"#include "core_cm33.h"#include "RP2350.h"#include "helpers.h"#include "gpio_conf.h"#include "clock_conf.h"#include "uart_conf.h"#include "multicore.h"
Include dependency graph for periph_cpu.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
| #define | HAVE_GPIO_T |
| Overwrite the default GPIO type to use uint32_t. | |
| #define | GPIO_PIN(port, pin) |
| Macro to create a GPIO pin identifier. | |
| #define | _u(x) |
| This is a define used throughout the pico sdk. | |
| #define | OSC_DEBUG_PIN_ID 15u |
| GPIO Pin ID for oscillator debugging. | |
| #define | RESET_PLL_SYS (1u << 14u) |
| Reset bit for the system PLL. | |
| #define | RESET_PADS_BANK0 (1u << 9u) |
| Reset bit for the pads bank 0. | |
| #define | RESET_UART0 (1u << 26u) |
| Reset bit for UART0 peripheral. | |
| #define | RESET_UART1 (1u << 27u) |
| Reset bit for UART1 peripheral. | |
| #define | RESET_IO_BANK0 (1u << 6u) |
| Reset bit for the IO bank 0. | |
| #define | PADS_BANK0_GPIO0_IE_BITS (1u << 6u) |
| Input enable bit for GPIO0 in PADS_BANK0. | |
| #define | PADS_BANK0_ISO_BITS (1u << 8u) |
| Isolation bits for PADS_BANK0. | |
| void | rp2350_init (void) |
| Initialize RP2350 specific CPU peripherals that are not architecture specific. | |
| 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_status_register_addr (gpio_t pin) |
| Calculate the address of the GPIO IO status 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. | |
| #define _u | ( | x | ) |
This is a define used throughout the pico sdk.
Definition at line 33 of file periph_cpu.h.
| #define GPIO_PIN | ( | port, | |
| pin ) |
Macro to create a GPIO pin identifier.
| port | The GPIO port (Currently only GPIO0) |
| pin | The GPIO pin number |
Definition at line 30 of file periph_cpu.h.
| #define HAVE_GPIO_T |
Overwrite the default GPIO type to use uint32_t.
Definition at line 22 of file periph_cpu.h.
| #define OSC_DEBUG_PIN_ID 15u |
GPIO Pin ID for oscillator debugging.
Definition at line 61 of file periph_cpu.h.
| #define PADS_BANK0_GPIO0_IE_BITS (1u << 6u) |
Input enable bit for GPIO0 in PADS_BANK0.
Definition at line 79 of file periph_cpu.h.
| #define PADS_BANK0_ISO_BITS (1u << 8u) |
Isolation bits for PADS_BANK0.
Definition at line 82 of file periph_cpu.h.
| #define RESET_IO_BANK0 (1u << 6u) |
Reset bit for the IO bank 0.
Definition at line 76 of file periph_cpu.h.
| #define RESET_PADS_BANK0 (1u << 9u) |
Reset bit for the pads bank 0.
Definition at line 67 of file periph_cpu.h.
| #define RESET_PLL_SYS (1u << 14u) |
Reset bit for the system PLL.
Definition at line 64 of file periph_cpu.h.
| #define RESET_UART0 (1u << 26u) |
Reset bit for UART0 peripheral.
Definition at line 70 of file periph_cpu.h.
| #define RESET_UART1 (1u << 27u) |
Reset bit for UART1 peripheral.
Definition at line 73 of file periph_cpu.h.
|
inlinestatic |
Calculate the address of the GPIO IO control register for a given pin.
| pin | The GPIO pin number |
Definition at line 119 of file periph_cpu.h.
|
static |
Calculate the address of the GPIO IO status register for a given pin.
| pin | The GPIO pin number |
Definition at line 108 of file periph_cpu.h.
|
inlinestatic |
Calculate the address of the GPIO pad register for a given pin.
| [in] | pin | The GPIO pin number |
Definition at line 95 of file periph_cpu.h.