aboutsummaryrefslogtreecommitdiff
path: root/hal_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'hal_internal.h')
-rw-r--r--hal_internal.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/hal_internal.h b/hal_internal.h
index 659cd27..3aadb48 100644
--- a/hal_internal.h
+++ b/hal_internal.h
@@ -100,9 +100,14 @@ extern void hal_ks_unlock(void);
extern void hal_task_yield(void);
/*
- * Logging.
+ * Thread sleep. Currently used only for bad-PIN delays.
*/
+extern void hal_sleep(const unsigned seconds);
+
+/*
+ * Logging.
+ */
typedef enum {
HAL_LOG_DEBUG, HAL_LOG_INFO, HAL_LOG_WARN, HAL_LOG_ERROR, HAL_LOG_SILENT
@@ -422,6 +427,7 @@ extern hal_error_t hal_mkm_volatile_erase(const size_t len);
/* #warning MKM flash backup kludge enabled. Do NOT use this in production! */
extern hal_error_t hal_mkm_flash_read(uint8_t *buf, const size_t len);
+extern hal_error_t hal_mkm_flash_read_no_lock(uint8_t *buf, const size_t len);
extern hal_error_t hal_mkm_flash_write(const uint8_t * const buf, const size_t len);
extern hal_error_t hal_mkm_flash_erase(const size_t len);