aboutsummaryrefslogtreecommitdiff
path: root/projects/bootloader
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-04-30 10:37:39 -0400
committerRob Austein <sra@hactrn.net>2017-04-30 10:37:39 -0400
commit2791ee836b2e55076bc109cda19f5b686b6a97d6 (patch)
treefe73a43c7a0e297c0cc70da3820138b29d2b289d /projects/bootloader
parent73b784eac101085b8734d2188ae59b5295a80839 (diff)
parent99c8452187b2f99a92fbbea50ea1968d209b7c44 (diff)
Merge branch 'ksng' into no-rtos
Required minor manual intervention to resolve merge issues git had no way of understanding: git is clever, but not quite clever enough to understand that a commit in branch had removed the entire RTOS that a commit in the other branch was using. No big deal, just a couple of osDelay() calls needing conversion to HAL_Delay() or task_delay().
Diffstat (limited to 'projects/bootloader')
-rw-r--r--projects/bootloader/bootloader.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/projects/bootloader/bootloader.c b/projects/bootloader/bootloader.c
index 3040bd1..683a498 100644
--- a/projects/bootloader/bootloader.c
+++ b/projects/bootloader/bootloader.c
@@ -88,6 +88,9 @@ int should_dfu()
return 0;
}
+/* Sleep for specified number of seconds -- used after bad PIN. */
+void hal_sleep(const unsigned seconds) { HAL_Delay(seconds * 1000); }
+
int
main()
{