bootloader: Explicitly initialize the port module.
authorTilman Sauerbeck <tilman@code-monkey.de>
Wed, 6 Nov 2019 19:43:52 +0000 (20:43 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 5 Jan 2020 19:38:11 +0000 (20:38 +0100)
Don't assume another component does it for us.

src/bootloader/main.rs

index 1a0a7cc3d53ebdf1194ec88bd11a3eec541837c7..50c32a4e12f5a0b409047fb40d77aa741431dda1 100644 (file)
@@ -71,6 +71,7 @@ fn bootloader_requested() -> bool {
 pub unsafe extern fn main() {
     clock::configure();
     systick::init();
+    port::init();
 
     // Configure lower left push button.
     gpio::set_direction(gpio::GPIOE, 1 << 24, gpio::Direction::Input);