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>
This commit is contained in:
Jim Mussared 2023-08-15 23:18:47 +10:00
parent 45845acf6d
commit c3093080b1
6 changed files with 24 additions and 24 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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