put some extra (pre-)configuration into Makefile.inc
authorStephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Thu, 12 Sep 2013 13:47:15 +0000 (15:47 +0200)
committerStephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Thu, 12 Sep 2013 14:26:59 +0000 (14:26 +0000)
Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Makefile.inc

index 7515129..e2ecf67 100644 (file)
@@ -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.