fix qtpy rp2040 uart rx rev B (#466)

also add static check for USB DPRAM
This commit is contained in:
Ha Thach 2021-06-03 02:00:29 +07:00 committed by GitHub
parent 5afa3636d6
commit eeb6b501ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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 -------------//

View File

@ -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;