diff options
author | Christian Pointner <equinox@spreadspace.org> | 2017-08-26 21:00:05 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2017-08-26 21:00:05 +0200 |
commit | 6f93f6b1adefa0f541b6e81d37b7677a4cb34460 (patch) | |
tree | 1afcb738ea103a473543f6acc34678e2e74ddedc /defines.mk | |
parent | build spl doxygen if available (diff) |
fix linking to external libs
Diffstat (limited to 'defines.mk')
-rw-r--r-- | defines.mk | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -22,7 +22,7 @@ ifeq ($(BOARD_TYPE),discovery) MCU := stm8s105c6 - F_CPU := 16000000 + F_XTAL := 16000000 SPL_MCU := STM8S105 LED_CNT := 1 LED_GPIO := GPIOD @@ -46,7 +46,9 @@ CFLAGS += --funsigned-char # CFLAGS += --opt-code-size CFLAGS += -I$(LIB_DIR) CFLAGS += -D__BOARD_$(BOARD_TYPE)__ -CFLAGS += -DF_CPU=$(F_CPU)UL +ifdef F_XTAL + CFLAGS += -DF_XTAL=$(F_XTAL)UL +endif ifdef LED_CNT CFLAGS += -DLED_CNT=$(LED_CNT) CFLAGS += -DLED_GPIO=$(LED_GPIO) |