mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 01:40:14 +01:00
ports: Fix incorrect identifiers on Arduino boards.
This commit changes the Arduino board identifiers to correspond to their official names. This helps to identify boards at runtime. At the moment the Arduino Portenta H7 is reported as PORTENTA which is unfortunate as now there is another Portenta board (Portenta C33) supported in MicroPython. Also made the other identifiers for flash and network name consistent, removed the incorrectly used MICROPY_PY_SYS_PLATFORM identifiers, and added missing MICROPY_PY_NETWORK_HOSTNAME_DEFAULT identifiers. Boards affected: - stm32: ARDUINO_PORTENTA_H7, ARDUINO_GIGA, ARDUINO_NICLA_VISION - renesas-ra: ARDUINO_PORTENTA_C33 - esp32: ARDUINO_NANO_ESP32 - rp2: ARDUINO_NANO_RP2040_CONNECT Signed-off-by: Sebastian Romero <s.romero@arduino.cc>
This commit is contained in:
committed by
Damien George
parent
a968888f69
commit
6f0193335a
@@ -5,10 +5,14 @@
|
||||
*/
|
||||
|
||||
// MCU config
|
||||
#define MICROPY_HW_BOARD_NAME "PORTENTA C33"
|
||||
#define MICROPY_HW_BOARD_NAME "Arduino Portenta C33"
|
||||
#define MICROPY_HW_MCU_NAME "RA6M5"
|
||||
#define MICROPY_HW_MCU_SYSCLK 200000000
|
||||
#define MICROPY_HW_MCU_PCLK 100000000
|
||||
#define MICROPY_HW_FLASH_FS_LABEL "Portenta C33"
|
||||
|
||||
// Network config
|
||||
#define MICROPY_PY_NETWORK_HOSTNAME_DEFAULT "mpy-portenta-c33"
|
||||
|
||||
// module config
|
||||
#define MICROPY_EMIT_THUMB (1)
|
||||
|
||||
Reference in New Issue
Block a user