-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathbootloader.h
More file actions
35 lines (27 loc) · 810 Bytes
/
bootloader.h
File metadata and controls
35 lines (27 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef _BOOTLOADER_H_
#define _BOOTLOADER_H_
#include <stdint.h>
/* Ensure DTR_TOGGLING_SEQ enabled */
#if defined(BL_LEGACY_LEAF) || defined(BL_HID)
#ifndef DTR_TOGGLING_SEQ
#define DTR_TOGGLING_SEQ
#endif /* DTR_TOGGLING_SEQ || BL_HID */
#endif /* BL_LEGACY_LEAF */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
void scheduleBootloaderReset();
void cancelBootloaderReset();
void bootloaderSystickHandler();
/* Request to jump to system memory boot */
void jumpToBootloaderRequested(void);
/* Jump to system memory boot from user application */
void jumpToBootloaderIfRequested(void);
#ifdef DTR_TOGGLING_SEQ
/* DTR toggling sequence management */
void dtr_togglingHook(uint8_t *buf, uint32_t *len);
#endif
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* _BOOTLOADER_H_ */