mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-23 15:01:14 -04:00
Init: Boot to HackRF mode if PortaPack CPLD not found.
Worst case, customers can always pull off the PortaPack to get back to a working HackRF.
This commit is contained in:
parent
b3c21c3762
commit
748e5a4f5f
3 changed files with 31 additions and 23 deletions
|
@ -68,22 +68,23 @@ static void event_loop() {
|
|||
}
|
||||
|
||||
int main(void) {
|
||||
portapack::init();
|
||||
if( portapack::init() ) {
|
||||
portapack::display.init();
|
||||
|
||||
portapack::display.init();
|
||||
sdcStart(&SDCD1, nullptr);
|
||||
|
||||
sdcStart(&SDCD1, nullptr);
|
||||
controls_init();
|
||||
lcd_frame_sync_configure();
|
||||
rtc_interrupt_enable();
|
||||
|
||||
controls_init();
|
||||
lcd_frame_sync_configure();
|
||||
rtc_interrupt_enable();
|
||||
event_loop();
|
||||
|
||||
event_loop();
|
||||
sdcDisconnect(&SDCD1);
|
||||
sdcStop(&SDCD1);
|
||||
|
||||
sdcDisconnect(&SDCD1);
|
||||
sdcStop(&SDCD1);
|
||||
portapack::shutdown();
|
||||
}
|
||||
|
||||
portapack::shutdown();
|
||||
m4_init(portapack::spi_flash::image_tag_hackrf, portapack::memory::map::m4_code_hackrf);
|
||||
m0_halt();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue