Skip to content

Commit

Permalink
stm32/boards: Only freeze LCD160CR driver in PYB board firmware.
Browse files Browse the repository at this point in the history
Although this driver and associated hardware can be used on any board, it
makes to only freeze it for PYB and PYBD boards.  It can be easily copied
to any board if needed.

Fixes issue #8056.

Signed-off-by: Damien George <damien@micropython.org>
  • Loading branch information
dpgeorge committed Sep 6, 2022
1 parent 655c293 commit 4e4c28b
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions ports/stm32/boards/PYBD_SF2/manifest.py
@@ -1,2 +1,3 @@
include("$(PORT_DIR)/boards/manifest.py")
include("$(PORT_DIR)/boards/manifest_pyboard.py")
include("$(MPY_DIR)/extmod/webrepl")
3 changes: 3 additions & 0 deletions ports/stm32/boards/PYBLITEV10/mpconfigboard.mk
Expand Up @@ -24,3 +24,6 @@ endif
ifeq ($(BOARD_VARIANT),"network")
MICROPY_PY_NETWORK_WIZNET5K=5200
endif

# PYB-specific frozen modules
FROZEN_MANIFEST ?= boards/PYBV10/manifest.py
2 changes: 2 additions & 0 deletions ports/stm32/boards/PYBV10/manifest.py
@@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
include("$(PORT_DIR)/boards/manifest_pyboard.py")
3 changes: 3 additions & 0 deletions ports/stm32/boards/PYBV10/mpconfigboard.mk
Expand Up @@ -34,3 +34,6 @@ endif
ifeq ($(BOARD_VARIANT),"network")
MICROPY_PY_NETWORK_WIZNET5K=5200
endif

# PYB-specific frozen modules
FROZEN_MANIFEST ?= $(BOARD_DIR)/manifest.py
3 changes: 3 additions & 0 deletions ports/stm32/boards/PYBV11/mpconfigboard.mk
Expand Up @@ -34,3 +34,6 @@ endif
ifeq ($(BOARD_VARIANT),"network")
MICROPY_PY_NETWORK_WIZNET5K=5200
endif

# PYB-specific frozen modules
FROZEN_MANIFEST ?= boards/PYBV10/manifest.py
1 change: 0 additions & 1 deletion ports/stm32/boards/manifest.py
@@ -1,5 +1,4 @@
include("$(MPY_DIR)/extmod/uasyncio")

include("$(MPY_DIR)/drivers/dht")
include("$(MPY_DIR)/drivers/display", lcd160cr=True, test=True)
include("$(MPY_DIR)/drivers/onewire", ds18x20=False)
1 change: 1 addition & 0 deletions ports/stm32/boards/manifest_pyboard.py
@@ -0,0 +1 @@
include("$(MPY_DIR)/drivers/display", lcd160cr=True)

0 comments on commit 4e4c28b

Please sign in to comment.