From 815d6a131d81eded59d17aa854eb006ff8c19e2b Mon Sep 17 00:00:00 2001 From: Peter Harper Date: Wed, 22 May 2024 15:34:32 +0100 Subject: [PATCH] rp2/mpconfigport: Set MCU name for RP2350. Signed-off-by: Damien George --- ports/rp2/mpconfigport.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ports/rp2/mpconfigport.h b/ports/rp2/mpconfigport.h index b34b4fc09..80fe9f37c 100644 --- a/ports/rp2/mpconfigport.h +++ b/ports/rp2/mpconfigport.h @@ -35,7 +35,16 @@ #include "mpconfigboard.h" // Board and hardware specific configuration +#if PICO_RP2040 #define MICROPY_HW_MCU_NAME "RP2040" +#elif PICO_RP2350 && PICO_ARM +#define MICROPY_HW_MCU_NAME "RP2350" +#elif PICO_RP2350 && PICO_RISCV +#define MICROPY_HW_MCU_NAME "RP2350-RISCV" +#else +#error Unknown MCU +#endif + #ifndef MICROPY_HW_ENABLE_UART_REPL #define MICROPY_HW_ENABLE_UART_REPL (0) // useful if there is no USB #endif