| /hal_rpi_pico-latest/src/rp2_common/hardware_pio/ |
| D | pio.c | 24 void pio_sm_claim(PIO pio, uint sm) { in pio_sm_claim() argument 26 uint which = pio_get_index(pio); in pio_sm_claim() 36 void pio_claim_sm_mask(PIO pio, uint sm_mask) { in pio_claim_sm_mask() argument 38 if (sm_mask & 1u) pio_sm_claim(pio, i); in pio_claim_sm_mask() 42 void pio_sm_unclaim(PIO pio, uint sm) { in pio_sm_unclaim() argument 44 uint which = pio_get_index(pio); in pio_sm_unclaim() 48 int pio_claim_unused_sm(PIO pio, bool required) { in pio_claim_unused_sm() argument 50 uint which = pio_get_index(pio); in pio_claim_unused_sm() 57 bool pio_sm_is_claimed(PIO pio, uint sm) { in pio_sm_is_claimed() argument 59 uint which = pio_get_index(pio); in pio_sm_is_claimed() [all …]
|
| D | BUILD.bazel | 7 srcs = ["pio.c"], 9 "include/hardware/pio.h",
|
| D | CMakeLists.txt | 1 pico_simple_hardware_target(pio)
|
| /hal_rpi_pico-latest/src/rp2_common/hardware_pio/include/hardware/ |
| D | pio.h | 175 #define PIO_NUM(pio) (((uintptr_t)(pio) - PIO0_BASE) >> 20) argument 200 #define PIO_FUNCSEL_NUM(pio, gpio) ((gpio_function_t) (GPIO_FUNC_PIO0 + PIO_NUM(pio))) argument 218 #define PIO_DREQ_NUM(pio, sm, is_tx) ((sm) + (((is_tx) ? 0 : NUM_PIO_STATE_MACHINES) + PIO_NUM(pio)… argument 230 #define PIO_IRQ_NUM(pio, irqn) (PIO0_IRQ_0 + NUM_PIO_IRQS * PIO_NUM(pio) + (irqn)) argument 309 static inline void check_pio_param(__unused PIO pio) { in check_pio_param() argument 311 valid_params_if(HARDWARE_PIO, pio == pio0 || pio == pio1); in check_pio_param() 313 valid_params_if(HARDWARE_PIO, pio == pio0 || pio == pio1 || pio == pio2); in check_pio_param() 769 static inline uint pio_get_gpio_base(PIO pio) { in pio_get_gpio_base() argument 771 return pio->gpiobase; in pio_get_gpio_base() 773 ((void)pio); in pio_get_gpio_base() [all …]
|
| /hal_rpi_pico-latest/src/rp2_common/pico_cyw43_driver/ |
| D | cyw43_bus_pio_spi.c | 97 PIO pio; member 113 bus_data->pio = NULL; in cyw43_spi_init() 119 …if (!pio_claim_free_sm_and_add_program_for_gpio_range(&SPI_PROGRAM_FUNC, &bus_data->pio, &bus_data… in cyw43_spi_init() 142 …hw_set_bits(&bus_data->pio->input_sync_bypass, 1u << (CYW43_PIN_WL_DATA_IN - pio_get_gpio_base(bus… in cyw43_spi_init() 143 pio_sm_set_config(bus_data->pio, bus_data->pio_sm, &config); in cyw43_spi_init() 144 pio_sm_set_consecutive_pindirs(bus_data->pio, bus_data->pio_sm, CYW43_PIN_WL_CLOCK, 1, true); in cyw43_spi_init() 145 gpio_set_function(CYW43_PIN_WL_DATA_OUT, pio_get_funcsel(bus_data->pio)); in cyw43_spi_init() 151 pio_sm_exec(bus_data->pio, bus_data->pio_sm, pio_encode_set(pio_pins, 1)); in cyw43_spi_init() 165 if (bus_data->pio) { in cyw43_spi_deinit() 166 …pio_remove_program_and_unclaim_sm(&SPI_PROGRAM_FUNC, bus_data->pio, bus_data->pio_sm, bus_data->pi… in cyw43_spi_deinit() [all …]
|
| D | CMakeLists.txt | 50 pico_generate_pio_header(cyw43_driver_picow ${CMAKE_CURRENT_LIST_DIR}/cyw43_bus_pio_spi.pio) 88 # # PICO_CMAKE_CONFIG: CYW43_PIO_CLOCK_DIV_INT, integer component of pio clock divider used … 92 # # PICO_CMAKE_CONFIG: CYW43_PIO_CLOCK_DIV_FRAC8, fractional component of pio clock divider … 96 # # PICO_CMAKE_CONFIG: CYW43_PIO_CLOCK_DIV_DYNAMIC, flag used to enable dynamic pio clock di…
|
| D | BUILD.bazel | 84 srcs = ["cyw43_bus_pio_spi.pio"],
|
| /hal_rpi_pico-latest/bazel/ |
| D | defs.bzl | 34 doc = """Generates a .h header file for each listed pio source. 36 Each source file listed in `srcs` will be available as `[pio file name].h` on 41 srcs = ["my_fun_pio.pio"], 44 # This library can #include "my_fun_pio.pio.h".
|
| /hal_rpi_pico-latest/src/rp2350/hardware_structs/include/hardware/structs/ |
| D | accessctrl.h | 123 io_rw_32 pio[3];
|
| /hal_rpi_pico-latest/src/rp2040/hardware_regs/ |
| D | BUILD.bazel | 36 "include/hardware/regs/pio.h",
|
| /hal_rpi_pico-latest/src/rp2040/hardware_structs/ |
| D | BUILD.bazel | 32 "include/hardware/structs/pio.h",
|
| /hal_rpi_pico-latest/src/rp2350/hardware_structs/ |
| D | BUILD.bazel | 40 "include/hardware/structs/pio.h",
|
| /hal_rpi_pico-latest/src/rp2350/hardware_regs/ |
| D | BUILD.bazel | 64 "include/hardware/regs/pio.h",
|
| /hal_rpi_pico-latest/tools/ |
| D | CMakeLists.txt | 156 # Generate pio header and include it in the build
|