rp2: Add support for 48-pin RP2350 variant.

Update NUM_GPIOS to match NUM_BANK0_GPIOS, and increase bit-width of
variables that store pin numbers.

Signed-off-by: Phil Howard <phil@gadgetoid.com>
This commit is contained in:
Phil Howard
2024-07-01 15:29:57 +01:00
committed by Damien George
parent d2c85c74da
commit 6d39418f69
4 changed files with 4 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ typedef struct _machine_pin_af_obj_t {
typedef struct _machine_pin_obj_t {
mp_obj_base_t base;
qstr name;
uint8_t id : 5;
uint8_t id : 6;
#if MICROPY_HW_PIN_EXT_COUNT
uint8_t is_ext : 1;
uint8_t is_output : 1;