projects
/
gps-watch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7b1025
)
bootloader: Disable the watchdog.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 17 Nov 2019 18:05:39 +0000
(19:05 +0100)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 5 Jan 2020 19:38:11 +0000
(20:38 +0100)
The watchdog gets enabled with a 1s timeout on POR, and I don't
want to deal with that.
src/bootloader/main.rs
patch
|
blob
|
history
diff --git
a/src/bootloader/main.rs
b/src/bootloader/main.rs
index afd28dc994ca0794e33eb7f8d62d69dfda88d7db..ec71e15abccc9ad0d910320ea72001f2d63213f1 100644
(file)
--- a/
src/bootloader/main.rs
+++ b/
src/bootloader/main.rs
@@
-35,6
+35,7
@@
use common::clock;
use common::systick;
use common::port;
use common::gpio;
+use common::watchdog;
use common::usb_serial;
type Reg32 = register::Register<u32>;
@@
-78,6
+79,7
@@
fn bootloader_requested() -> bool {
#[no_mangle]
pub unsafe extern fn main() {
+ watchdog::disable();
clock::configure();
systick::init();
port::init();