diff options
author | Rob Austein <sra@hactrn.net> | 2017-04-26 19:59:24 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2017-04-26 19:59:24 -0400 |
commit | 0ced3ff3f64ca7ee0fc804d8f6dcfc89d2c5492f (patch) | |
tree | 65d362ea13a8ceb16986fe7c2f55777efd96a4c2 /projects/bootloader | |
parent | 410e6bb67fb5df5d0e4c962deac3e5562e5dc48f (diff) |
Add support for hal_sleep().
Diffstat (limited to 'projects/bootloader')
-rw-r--r-- | projects/bootloader/bootloader.c | 3 |
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() { |