Skip to content

Commit 815d6a1

Browse files
peterharperukdpgeorge
authored andcommitted
rp2/mpconfigport: Set MCU name for RP2350.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 70a884d commit 815d6a1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

ports/rp2/mpconfigport.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,16 @@
3535
#include "mpconfigboard.h"
3636

3737
// Board and hardware specific configuration
38+
#if PICO_RP2040
3839
#define MICROPY_HW_MCU_NAME "RP2040"
40+
#elif PICO_RP2350 && PICO_ARM
41+
#define MICROPY_HW_MCU_NAME "RP2350"
42+
#elif PICO_RP2350 && PICO_RISCV
43+
#define MICROPY_HW_MCU_NAME "RP2350-RISCV"
44+
#else
45+
#error Unknown MCU
46+
#endif
47+
3948
#ifndef MICROPY_HW_ENABLE_UART_REPL
4049
#define MICROPY_HW_ENABLE_UART_REPL (0) // useful if there is no USB
4150
#endif

0 commit comments

Comments
 (0)