Gate controller pairing behind BOOTSEL
This commit is contained in:
parent
fac919a798
commit
4a73680bd2
24 changed files with 934 additions and 145 deletions
14
tests/bootsel_native_stubs/hardware/structs/ioqspi.h
Normal file
14
tests/bootsel_native_stubs/hardware/structs/ioqspi.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
#include "hardware/gpio.h"
|
||||
|
||||
struct ioqspi_status_ctrl_hw_t {
|
||||
io_rw_32 status;
|
||||
io_rw_32 ctrl;
|
||||
};
|
||||
|
||||
struct ioqspi_hw_t {
|
||||
ioqspi_status_ctrl_hw_t io[6];
|
||||
};
|
||||
|
||||
extern ioqspi_hw_t* ioqspi_hw;
|
||||
10
tests/bootsel_native_stubs/hardware/structs/sio.h
Normal file
10
tests/bootsel_native_stubs/hardware/structs/sio.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
struct sio_hw_t {
|
||||
volatile uint32_t gpio_in;
|
||||
volatile uint32_t gpio_hi_in;
|
||||
};
|
||||
|
||||
extern sio_hw_t* sio_hw;
|
||||
Loading…
Add table
Add a link
Reference in a new issue