Skip to content

Commit 627a838

Browse files
committed
Centralize PHY define and drop RTL8201 LED flag
Move `PHY_TYPE=$(ENET_PHY)` into shared `DEFINES` in `firmware-template-gd32/lib/Rules.mk` and remove it from `COPS` so PHY selection is handled consistently through the define list. Also remove `RTL8201F_LED1_LINK_ALL` from the Art-Net pixel multi and E1.31 DMX multi build configs to stop forcing that PHY-specific LED behavior in those targets.
1 parent d7ef8e1 commit 627a838

4 files changed

Lines changed: 2 additions & 120 deletions

File tree

firmware-template-gd32/lib/Rules.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ $(info $$ENET_PHY [${ENET_PHY}])
2020
SRCDIR=src src/gd32 $(EXTRA_SRCDIR)
2121

2222
DEFINES:=$(addprefix -D,$(DEFINES))
23+
DEFINES+=-DPHY_TYPE=$(ENET_PHY)
2324

2425
include ../common/make/gd32/Board.mk
2526
include ../common/make/gd32/Mcu.mk
@@ -31,7 +32,7 @@ include ../common/make/gd32/Validate.mk
3132

3233
INCLUDES+=-I../lib-configstore/include -I../lib-device/include -I../lib-display/include -I../lib-flash/include -I../lib-flashcode/include -I../lib-board/include -I../lib-lightset/include -I../lib-network/include
3334

34-
COPS=-DGD32 -D$(FAMILY_UCA) -D$(LINE_UC) -D$(MCU) -D$(BOARD) -DPHY_TYPE=$(ENET_PHY)
35+
COPS=-DGD32 -D$(FAMILY_UCA) -D$(LINE_UC) -D$(MCU) -D$(BOARD)
3536
COPS+=$(sort $(DEFINES) $(MAKE_FLAGS) $(VALIDATE_FLAGS))
3637
COPS+=$(strip $(INCLUDES))
3738
COPS+=$(strip $(ARMOPS) $(CMSISOPS))

gd32_emac_artnet_pixel_multi/Makefile-softuart0.GD32

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ DEFINES+=DMXNODE_PORTS=32
1212
DEFINES+=CONFIG_DMXNODE_PIXEL_MAX_PORTS=8
1313

1414
DEFINES+=ENET_RXBUF_NUM=34 ENET_TXBUF_NUM=3
15-
DEFINES+=RTL8201F_LED1_LINK_ALL
1615

1716
DEFINES+=DISPLAY_UDF
1817

gd32_emac_e131_dmx_multi/Common.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ DEFINES+=NODE_RDMNET_LLRP_ONLY
22

33
DEFINES+=CONFIG_STORE_USE_SPI
44

5-
DEFINES+=RTL8201F_LED1_LINK_ALL
6-
75
DEFINES+=DISPLAY_UDF
86

97
DEFINES+=ENABLE_HTTPD

lib-remoteconfig/http/content/pixeltype.json

Lines changed: 0 additions & 116 deletions
This file was deleted.

0 commit comments

Comments
 (0)