From: Stephan Baerwolf Date: Thu, 12 Sep 2013 13:47:15 +0000 (+0200) Subject: put some extra (pre-)configuration into Makefile.inc X-Git-Tag: testing-head~14 X-Git-Url: http://git.linex4red.de/pub/USBaspLoader.git/commitdiff_plain/40fa0566e149b4f384454b4f1ab07d366ea4ab7e?ds=inline put some extra (pre-)configuration into Makefile.inc Signed-off-by: Stephan Baerwolf --- 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.