fix qtpy rp2040 uart rx rev B (#466)
also add static check for USB DPRAM
This commit is contained in:
parent
5afa3636d6
commit
eeb6b501ff
@ -30,7 +30,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef PICO_DEFAULT_UART_RX_PIN
|
||||
#define PICO_DEFAULT_UART_RX_PIN 9
|
||||
#define PICO_DEFAULT_UART_RX_PIN 5
|
||||
#endif
|
||||
|
||||
//------------- LED -------------//
|
||||
|
@ -79,6 +79,7 @@ typedef struct {
|
||||
} usb_device_dpram_t;
|
||||
|
||||
static_assert(sizeof(usb_device_dpram_t) == USB_DPRAM_MAX, "");
|
||||
static_assert(offsetof(usb_device_dpram_t, epx_data) == 0x180, "");
|
||||
|
||||
typedef struct {
|
||||
// 4K of DPSRAM at beginning. Note this supports 8, 16, and 32 bit accesses
|
||||
@ -108,6 +109,7 @@ typedef struct {
|
||||
} usb_host_dpram_t;
|
||||
|
||||
static_assert(sizeof(usb_host_dpram_t) == USB_DPRAM_MAX, "");
|
||||
static_assert(offsetof(usb_host_dpram_t, epx_data) == 0x180, "");
|
||||
|
||||
typedef struct {
|
||||
io_rw_32 dev_addr_ctrl;
|
||||
|
Loading…
Reference in New Issue
Block a user