Browse Source

stm32: Use uppercase variant names.

This is to support a future change to add the variant name to the build
directory and therefore should be the same style as the board name.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
pull/12240/head
Jim Mussared 1 year ago
parent
commit
c3093080b1
  1. 8
      ports/stm32/boards/PYBLITEV10/board.json
  2. 8
      ports/stm32/boards/PYBLITEV10/mpconfigboard.mk
  3. 8
      ports/stm32/boards/PYBV10/board.json
  4. 8
      ports/stm32/boards/PYBV10/mpconfigboard.mk
  5. 8
      ports/stm32/boards/PYBV11/board.json
  6. 8
      ports/stm32/boards/PYBV11/mpconfigboard.mk

8
ports/stm32/boards/PYBLITEV10/board.json

@ -15,10 +15,10 @@
"thumbnail": "",
"url": "https://store.micropython.org/product/PYBLITEv1.0",
"variants": {
"dp": "Double-precision float",
"dp-thread": "Double precision float + Threads",
"network": "Wiznet 5200 Driver",
"thread": "Threading"
"DP": "Double-precision float",
"DP_THREAD": "Double precision float + Threads",
"NETWORK": "Wiznet 5200 Driver",
"THREAD": "Threading"
},
"vendor": "George Robotics"
}

8
ports/stm32/boards/PYBLITEV10/mpconfigboard.mk

@ -6,20 +6,20 @@ TEXT0_ADDR = 0x08000000
TEXT1_ADDR = 0x08020000
# Provide different variants for the downloads page.
ifeq ($(BOARD_VARIANT),dp)
ifeq ($(BOARD_VARIANT),DP)
MICROPY_FLOAT_IMPL=double
endif
ifeq ($(BOARD_VARIANT),thread)
ifeq ($(BOARD_VARIANT),THREAD)
CFLAGS += -DMICROPY_PY_THREAD=1
endif
ifeq ($(BOARD_VARIANT),dp-thread)
ifeq ($(BOARD_VARIANT),DP_THREAD)
MICROPY_FLOAT_IMPL=double
CFLAGS += -DMICROPY_PY_THREAD=1
endif
ifeq ($(BOARD_VARIANT),network)
ifeq ($(BOARD_VARIANT),NETWORK)
MICROPY_PY_NETWORK_WIZNET5K=5200
endif

8
ports/stm32/boards/PYBV10/board.json

@ -13,10 +13,10 @@
"thumbnail": "",
"url": "",
"variants": {
"dp": "Double-precision float",
"dp-thread": "Double precision float + Threads",
"network": "Wiznet 5200 Driver",
"thread": "Threading"
"DP": "Double-precision float",
"DP_THREAD": "Double precision float + Threads",
"NETWORK": "Wiznet 5200 Driver",
"THREAD": "Threading"
},
"vendor": "George Robotics"
}

8
ports/stm32/boards/PYBV10/mpconfigboard.mk

@ -16,20 +16,20 @@ endif
MICROPY_VFS_LFS2 = 1
# Provide different variants for the downloads page.
ifeq ($(BOARD_VARIANT),dp)
ifeq ($(BOARD_VARIANT),DP)
MICROPY_FLOAT_IMPL=double
endif
ifeq ($(BOARD_VARIANT),thread)
ifeq ($(BOARD_VARIANT),THREAD)
CFLAGS += -DMICROPY_PY_THREAD=1
endif
ifeq ($(BOARD_VARIANT),dp-thread)
ifeq ($(BOARD_VARIANT),DP_THREAD)
MICROPY_FLOAT_IMPL=double
CFLAGS += -DMICROPY_PY_THREAD=1
endif
ifeq ($(BOARD_VARIANT),network)
ifeq ($(BOARD_VARIANT),NETWORK)
MICROPY_PY_NETWORK_WIZNET5K=5200
endif

8
ports/stm32/boards/PYBV11/board.json

@ -15,10 +15,10 @@
"thumbnail": "",
"url": "https://store.micropython.org/product/PYBv1.1",
"variants": {
"dp": "Double-precision float",
"dp-thread": "Double precision float + Threads",
"network": "Wiznet 5200 Driver",
"thread": "Threading"
"DP": "Double-precision float",
"DP_THREAD": "Double precision float + Threads",
"NETWORK": "Wiznet 5200 Driver",
"THREAD": "Threading"
},
"vendor": "George Robotics"
}

8
ports/stm32/boards/PYBV11/mpconfigboard.mk

@ -16,20 +16,20 @@ endif
MICROPY_VFS_LFS2 = 1
# Provide different variants for the downloads page.
ifeq ($(BOARD_VARIANT),dp)
ifeq ($(BOARD_VARIANT),DP)
MICROPY_FLOAT_IMPL=double
endif
ifeq ($(BOARD_VARIANT),thread)
ifeq ($(BOARD_VARIANT),THREAD)
CFLAGS += -DMICROPY_PY_THREAD=1
endif
ifeq ($(BOARD_VARIANT),dp-thread)
ifeq ($(BOARD_VARIANT),DP_THREAD)
MICROPY_FLOAT_IMPL=double
CFLAGS += -DMICROPY_PY_THREAD=1
endif
ifeq ($(BOARD_VARIANT),network)
ifeq ($(BOARD_VARIANT),NETWORK)
MICROPY_PY_NETWORK_WIZNET5K=5200
endif

Loading…
Cancel
Save