mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-24 05:23:06 +00:00
805bb886c0
* Boot: switch to DFU routines. Implements #132 part 1 of 2. * Boot: boot to DFU shortcut, hard reset USB on each boot. Implements #132 part 2 of 2. * Deploy scripts: fix path for deploy dfu. * Bootloader: initial version. Target_f2: rebase, update deployment scripts. * Bootloader: cleanup, refactor switch2 proc. Readme,wiki: document bootloader. * Wiki: deploy symlinks as files, bootloader info. * Target_f2: valid flash size in linker script. * Github CI: bootloader build and artifacts. * Bootloader: rename platforms to targets. * Bootloader: change dfu/os colors. * disable set -e * lint code * add bootloader testing page Co-authored-by: Aleksandr Kutuzov <aku@plooks.com> Co-authored-by: aanper <mail@s3f.ru>
25 lines
No EOL
308 B
C
25 lines
No EOL
308 B
C
#ifndef TARGET_H
|
|
#define TARGET_H
|
|
|
|
/*
|
|
* Initialize hardware
|
|
*/
|
|
void target_init();
|
|
|
|
/*
|
|
* Check if dfu mode requested
|
|
* @return 1 if dfu mode requested, 0 if not
|
|
*/
|
|
int target_is_dfu_requested();
|
|
|
|
/*
|
|
* Switch to dfu mode
|
|
*/
|
|
void target_switch2dfu();
|
|
|
|
/*
|
|
* Switch to OS
|
|
*/
|
|
void target_switch2os();
|
|
|
|
#endif |