2020-10-01 02:05:04 +03:00
|
|
|
#ifndef TARGET_H
|
|
|
|
#define TARGET_H
|
|
|
|
|
2021-05-18 16:57:39 +03:00
|
|
|
/**
|
2020-10-01 02:05:04 +03:00
|
|
|
* Initialize hardware
|
|
|
|
*/
|
|
|
|
void target_init();
|
|
|
|
|
2021-05-18 16:57:39 +03:00
|
|
|
/**
|
2020-10-01 02:05:04 +03:00
|
|
|
* Check if dfu mode requested
|
|
|
|
* @return 1 if dfu mode requested, 0 if not
|
2021-05-18 16:57:39 +03:00
|
|
|
*/
|
2020-10-01 02:05:04 +03:00
|
|
|
int target_is_dfu_requested();
|
|
|
|
|
2021-05-18 16:57:39 +03:00
|
|
|
/**
|
2020-10-01 02:05:04 +03:00
|
|
|
* Switch to dfu mode
|
2021-05-18 16:57:39 +03:00
|
|
|
*/
|
2020-10-01 02:05:04 +03:00
|
|
|
void target_switch2dfu();
|
|
|
|
|
2021-05-18 16:57:39 +03:00
|
|
|
/**
|
2020-10-01 02:05:04 +03:00
|
|
|
* Switch to OS
|
2021-05-18 16:57:39 +03:00
|
|
|
*/
|
2020-10-01 02:05:04 +03:00
|
|
|
void target_switch2os();
|
|
|
|
|
|
|
|
#endif
|