+ // Configure pin for the MX25L's chip select line.
+ gpio::set_direction(gpio::GPIOD, 1 << 0, gpio::Direction::Output);
+ port::set_af(port::PORTD, 0, 1);
+ gpio::set(gpio::GPIOD, 1 << 0);
+
+ // Configure pins for SPI0.
+ port::set_af(port::PORTD, 1, 2);
+ port::set_af(port::PORTD, 2, 5);
+ port::set_af(port::PORTD, 3, 5);
+
+ spi::configure(spi::SPI0);
+
+ nvic::disable_irq(10); // SPI0
+
+ // Configure pins for UART0.
+ port::set_af(port::PORTE, 20, 4);
+ port::set_af(port::PORTE, 21, 4);
+
+ // Configure pin for the GPS's reset line.
+ gpio::set_direction(gpio::GPIOB, 1 << 1, gpio::Direction::Output);
+ port::set_af(port::PORTB, 1, 1);
+