Browse Source

Merge pull request #703 from iabdalkader/micro_names

Add MICROPY_HW_MICRO_NAME to boards config
pull/720/head
Paul Sokolovsky 11 years ago
parent
commit
3659af97c5
  1. 1
      stmhal/boards/HYDRABUS/mpconfigboard.h
  2. 1
      stmhal/boards/NETDUINO_PLUS_2/mpconfigboard.h
  3. 1
      stmhal/boards/PYBV10/mpconfigboard.h
  4. 1
      stmhal/boards/PYBV3/mpconfigboard.h
  5. 1
      stmhal/boards/PYBV4/mpconfigboard.h
  6. 1
      stmhal/boards/STM32F4DISC/mpconfigboard.h
  7. 2
      stmhal/pyexec.c

1
stmhal/boards/HYDRABUS/mpconfigboard.h

@ -1,6 +1,7 @@
#define HYDRABUSV10
#define MICROPY_HW_BOARD_NAME "HydraBus1.0"
#define MICROPY_HW_MICRO_NAME "STM32F4"
#define MICROPY_HW_HAS_SWITCH (1)
#define MICROPY_HW_HAS_SDCARD (1)

1
stmhal/boards/NETDUINO_PLUS_2/mpconfigboard.h

@ -1,6 +1,7 @@
#define NETDUINO_PLUS_2
#define MICROPY_HW_BOARD_NAME "NetduinoPlus2"
#define MICROPY_HW_MICRO_NAME "STM32F405RG"
#define MICROPY_HW_HAS_SWITCH (1)

1
stmhal/boards/PYBV10/mpconfigboard.h

@ -1,6 +1,7 @@
#define PYBV10
#define MICROPY_HW_BOARD_NAME "PYBv1.0"
#define MICROPY_HW_MICRO_NAME "STM32F405RG"
#define MICROPY_HW_HAS_SWITCH (1)
#define MICROPY_HW_HAS_SDCARD (1)

1
stmhal/boards/PYBV3/mpconfigboard.h

@ -1,6 +1,7 @@
#define PYBV3
#define MICROPY_HW_BOARD_NAME "PYBv3"
#define MICROPY_HW_MICRO_NAME "STM32F405RG"
#define MICROPY_HW_HAS_SWITCH (1)
#define MICROPY_HW_HAS_SDCARD (1)

1
stmhal/boards/PYBV4/mpconfigboard.h

@ -1,6 +1,7 @@
#define PYBV4
#define MICROPY_HW_BOARD_NAME "PYBv4"
#define MICROPY_HW_MICRO_NAME "STM32F405RG"
#define MICROPY_HW_HAS_SWITCH (1)
#define MICROPY_HW_HAS_SDCARD (1)

1
stmhal/boards/STM32F4DISC/mpconfigboard.h

@ -1,6 +1,7 @@
#define STM32F4DISC
#define MICROPY_HW_BOARD_NAME "F4DISC"
#define MICROPY_HW_MICRO_NAME "STM32F407"
#define MICROPY_HW_HAS_SWITCH (1)
#define MICROPY_HW_HAS_SDCARD (0)

2
stmhal/pyexec.c

@ -185,7 +185,7 @@ int pyexec_friendly_repl(void) {
#endif
friendly_repl_reset:
stdout_tx_str("Micro Python " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE "; " MICROPY_HW_BOARD_NAME " with STM32F405RG\r\n");
stdout_tx_str("Micro Python " MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE "; " MICROPY_HW_BOARD_NAME " with " MICROPY_HW_MICRO_NAME "\r\n");
stdout_tx_str("Type \"help()\" for more information.\r\n");
// to test ctrl-C

Loading…
Cancel
Save