projects
/
gps-watch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
common: Add the display module.
[gps-watch.git]
/
src
/
application
/
main.rs
diff --git
a/src/application/main.rs
b/src/application/main.rs
index 1fdc577cf9c55fca378798ce5434a390ac345eb4..bd1091f3c2bbca3632de41c8c536bd7619b34d80 100644
(file)
--- a/
src/application/main.rs
+++ b/
src/application/main.rs
@@
-32,6
+32,7
@@
use common::clock;
use common::systick;
use common::port;
use common::gpio;
+use common::nvic;
use common::usb_serial;
extern {
@@
-63,5
+64,9
@@
pub unsafe extern fn main() {
cdc_tx_buf.write(b".\n");
cdc_tx_buf.flush();
+
+ if (gpio::get(gpio::GPIOA) & (1 << 12)) == 0 {
+ nvic::system_reset();
+ }
}
}