[core] Add lt_set_debug_mode() function, update core types

This commit is contained in:
Kuba Szczodrzyński
2023-05-27 16:03:46 +02:00
parent bc1b83d931
commit 4532c88873
6 changed files with 61 additions and 34 deletions

View File

@@ -58,6 +58,13 @@ lt_reboot_reason_t lt_get_reboot_reason();
*/
const char *lt_get_reboot_reason_name(lt_reboot_reason_t reason);
/**
* @brief Set debugger mode (JTAG, SWD or OFF).
*
* @return whether the mode is supported, and setting it was successful
*/
bool lt_set_debug_mode(lt_debug_mode_t mode);
/**
* @brief Reconfigure GPIO pins used for debugging
* (SWD/JTAG), so that they can be used as normal I/O.