-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
900 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
$(info "Board.mk") | ||
|
||
ifndef BOARD | ||
$(error BOARD is not set) | ||
endif | ||
|
||
ifndef DEFINES | ||
DEFINES= | ||
endif | ||
|
||
ifeq ($(strip $(BOARD)),BOARD_GD32F103RC) | ||
MCU=GD32F103RC | ||
DEFINES+=-DCONFIG_STORE_USE_ROM | ||
DEFINES+=-DNO_EMAC | ||
endif | ||
|
||
ifeq ($(strip $(BOARD)),BOARD_GD32F107RC) | ||
MCU=GD32F107RC | ||
DEFINES+=-DCONFIG_STORE_USE_SPI | ||
endif | ||
|
||
ifeq ($(strip $(BOARD)),BOARD_GD32F207RG) | ||
MCU=GD32F207RG | ||
DEFINES+=-DCONFIG_STORE_USE_SPI | ||
endif | ||
|
||
ifeq ($(strip $(BOARD)),BOARD_GD32F207VC_2) | ||
MCU=GD32F207VC | ||
DEFINES+=-DCONFIG_STORE_USE_ROM | ||
BITBANGING595=1 | ||
endif | ||
|
||
ifeq ($(strip $(BOARD)),BOARD_GD32F207VC_4) | ||
MCU=GD32F207VC | ||
DEFINES+=-DCONFIG_STORE_USE_ROM | ||
BITBANGING595=1 | ||
endif | ||
|
||
ifeq ($(strip $(BOARD)),BOARD_GD32F303RC) | ||
MCU=GD32F303RC | ||
DEFINES+=-DCONFIG_STORE_USE_ROM | ||
DEFINES+=-DNO_EMAC | ||
endif | ||
|
||
ifeq ($(strip $(BOARD)),BOARD_GD32F407RE) | ||
MCU=GD32F407RE | ||
DEFINES+=-DCONFIG_STORE_USE_SPI | ||
endif | ||
|
||
ifeq ($(strip $(BOARD)),BOARD_GD32F450VE) | ||
MCU=GD32F450VE | ||
DEFINES+=-DCONFIG_STORE_USE_RAM | ||
BITBANGING595=1 | ||
endif | ||
|
||
ifeq ($(strip $(BOARD)),BOARD_GD32F450VI) | ||
MCU=GD32F450VI | ||
endif | ||
|
||
ifeq ($(strip $(BOARD)),BOARD_16X4U_PIXEL) | ||
MCU=GD32F450VI | ||
endif | ||
|
||
ifeq ($(strip $(BOARD)),BOARD_GD32F207C_EVAL) | ||
MCU=GD32F207VC | ||
DEFINES+=-DCONFIG_STORE_USE_ROM | ||
endif | ||
|
||
ifeq ($(strip $(BOARD)),BOARD_GD32F470Z_EVAL) | ||
MCU=GD32F470ZK | ||
endif | ||
|
||
ifeq ($(strip $(BOARD)),BOARD_GD32H759I_EVAL) | ||
MCU=GD32H759IM | ||
endif | ||
|
||
ifeq ($(strip $(BOARD)),BOARD_BW_OPIDMX4) | ||
BOARD_DMX=4 | ||
endif | ||
|
||
ifeq ($(strip $(BOARD)),BOARD_DMX3) | ||
BOARD_DMX=3 | ||
endif | ||
|
||
ifeq ($(strip $(BOARD)),BOARD_DMX4) | ||
BOARD_DMX=4 | ||
endif | ||
|
||
ifdef BOARD_DMX | ||
ifeq ($(MCU),GD32F207RG) | ||
else ifeq ($(MCU),GD32F407RE) | ||
else | ||
$(error MCU is not support for BOARD_DMX) | ||
endif | ||
endif | ||
|
||
ifndef MCU | ||
$(error BOARD is not configured) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
$(info "FreeRTOS.mk") | ||
|
||
ifndef ARMOPS | ||
$(error ARMOPS is not set) | ||
endif | ||
|
||
ifeq ($(findstring USE_FREE_RTOS,$(DEFINES)), USE_FREE_RTOS) | ||
USEFREERTOS=1 | ||
endif | ||
ifeq ($(findstring USE_FREE_RTOS,$(MAKE_FLAGS)), USE_FREE_RTOS) | ||
USEFREERTOS=1 | ||
endif | ||
|
||
ifdef USEFREERTOS | ||
INCLUDES+=-I../lib-gd32/FreeRTOS/FreeRTOS-Kernel/include | ||
|
||
ifeq ($(findstring cortex-m3,$(ARMOPS)), cortex-m3) | ||
FREE_RTOS_PORTABLE=ARM_CM3 | ||
endif | ||
|
||
ifeq ($(findstring cortex-m4,$(ARMOPS)), cortex-m4) | ||
FREE_RTOS_PORTABLE=ARM_CM4F | ||
endif | ||
|
||
ifeq ($(findstring cortex-m7,$(ARMOPS)), cortex-m7) | ||
FREE_RTOS_PORTABLE=ARM_CM7 | ||
endif | ||
|
||
ifndef FREE_RTOS_PORTABLE | ||
$(error FREE_RTOS_PORTABLE is not set) | ||
endif | ||
|
||
INCLUDES+=-I../lib-gd32/FreeRTOS/FreeRTOS-Kernel/portable/GCC/$(FREE_RTOS_PORTABLE) | ||
DEFINES+=-D$(FREE_RTOS_PORTABLE) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.