From 40fa0566e149b4f384454b4f1ab07d366ea4ab7e Mon Sep 17 00:00:00 2001 From: Stephan Baerwolf Date: Thu, 12 Sep 2013 15:47:15 +0200 Subject: [PATCH] put some extra (pre-)configuration into Makefile.inc Signed-off-by: Stephan Baerwolf --- Makefile.inc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile.inc b/Makefile.inc index 7515129..e2ecf67 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -13,7 +13,18 @@ FLASHADDRESS = 0x0000 # some MCU independend defines... #...will be extended within MCU dependend configuration below... -DEFINES = -DCONFIG_NO__CHIP_ERASE -DCONFIG_NO__ONDEMAND_PAGEERASE +DEFINES += -DCONFIG_NO__CHIP_ERASE -DCONFIG_NO__ONDEMAND_PAGEERASE + +# have the bootloader always enter the programming mode +;DEFINES += -DCONFIG_HAVE__BOOTLOADER_ALWAYSENTERPROGRAMMODE + +# have the bootloader exit itself after around 3 seconds (@16MHz) inactivity +;DEFINES += -DCONFIG_BOOTLOADER_LOOPCYCLES_TIMEOUT=16 -DCONFIG_HAVE__BOOTLOADER_ABORTTIMEOUTONACT + +# save the PROG button on the layout (CAREFUL - read feature description first) +;DEFINES += -DCONFIG_HAVE__BOOTLOADER_IGNOREPROGBUTTON + + # some MCUs with small BLS (bootloader section) need to deactivate some # features in order to fit into BLS. -- 2.11.0