2015-05-20 14:05:11 +02:00
|
|
|
/*
|
2017-10-25 13:39:20 +02:00
|
|
|
* Licensed under the GNU General Public License version 2 with exceptions. See
|
|
|
|
* LICENSE file in the project root for full license information
|
2014-09-12 16:01:33 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _bootstrap_
|
|
|
|
#define _bootstrap_
|
|
|
|
|
|
|
|
#define BOOT_IDLE 0
|
|
|
|
#define BOOT_START 1
|
|
|
|
#define BOOT_UPDATING 2
|
|
|
|
#define BOOT_SWAP 3
|
|
|
|
#define BOOT_RESET 4
|
|
|
|
#define BOOT_FAILED 99
|
|
|
|
|
|
|
|
#define BOOT_WATCHDOG_MS 20 * 1000
|
|
|
|
|
|
|
|
void bootstrap_foe_init (void);
|
|
|
|
void bootstrap_state (void);
|
|
|
|
void boot_inithook (void);
|
|
|
|
void init_boothook (void);
|
|
|
|
|
|
|
|
#endif
|