introduce new feature: BOOTLOADER_LOOPCYCLES_TIMEOUT
authorStephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Wed, 11 Sep 2013 19:07:20 +0000 (21:07 +0200)
committerStephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
Wed, 11 Sep 2013 22:00:20 +0000 (22:00 +0000)
commita3d7386c66be4c2479a15ebfa60eb733c0005dbc
treec868b61357c971ecb66a2045a8e3a49f4d90576b
parentc9b428fa91b18645750a15b50e6cc2a972c53c9c
introduce new feature: BOOTLOADER_LOOPCYCLES_TIMEOUT

This feature must be explicitly defined (Makefile.inc)

When greater than "0", "BOOTLOADER_LOOPCYCLES_TIMEOUT" defines how
many 16bit loopcycles can be cycled, before bootloader times out
and starts user firmware. Of course "BOOTLOADER_CAN_EXIT" must be
enabled.

Even if this value is too small, bootloader  will not exit as
long as bootLoaderConditionSimple() stays true.

Signed-off-by: Stephan Baerwolf <stephan.baerwolf@tu-ilmenau.de>
firmware/bootloaderconfig.h
firmware/main.c