CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/AP_Bootloader/bl_protocol.h
Views: 1798
1
void jump_to_app(void);
2
void bootloader(unsigned timeout);
3
4
/*****************************************************************************
5
* Chip/board functions.
6
*/
7
8
/* LEDs */
9
10
#ifdef BOOT_DELAY_ADDRESS
11
# define BOOT_DELAY_SIGNATURE1 0x92c2ecff
12
# define BOOT_DELAY_SIGNATURE2 0xc5057d5d
13
# define BOOT_DELAY_MAX 30
14
#endif
15
16
#define MAX_DES_LENGTH 20
17
18
#define arraySize(a) (sizeof((a))/sizeof(((a)[0])))
19
20
enum led_state {LED_BLINK, LED_ON, LED_OFF, LED_BAD_FW};
21
void led_set(enum led_state state);
22
23