mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-23 14:24:18 -04:00
Move CPLD updating to earlier in start-up
Make sure CPLD code is up-to-date before attempting to interact with PortaPack.
This commit is contained in:
parent
19e42196db
commit
d6e3cc1d1b
1 changed files with 8 additions and 8 deletions
|
@ -145,6 +145,14 @@ void init() {
|
||||||
clock_manager.set_reference_ppb(persistent_memory::correction_ppb());
|
clock_manager.set_reference_ppb(persistent_memory::correction_ppb());
|
||||||
clock_manager.run_at_full_speed();
|
clock_manager.run_at_full_speed();
|
||||||
|
|
||||||
|
if( !cpld_update_if_necessary() ) {
|
||||||
|
chSysHalt();
|
||||||
|
}
|
||||||
|
|
||||||
|
if( !cpld_hackrf_load_sram() ) {
|
||||||
|
chSysHalt();
|
||||||
|
}
|
||||||
|
|
||||||
audio::init();
|
audio::init();
|
||||||
|
|
||||||
clock_manager.enable_first_if_clock();
|
clock_manager.enable_first_if_clock();
|
||||||
|
@ -153,14 +161,6 @@ void init() {
|
||||||
radio::init();
|
radio::init();
|
||||||
|
|
||||||
touch::adc::init();
|
touch::adc::init();
|
||||||
|
|
||||||
if( !cpld_update_if_necessary() ) {
|
|
||||||
chSysHalt();
|
|
||||||
}
|
|
||||||
|
|
||||||
if( !cpld_hackrf_load_sram() ) {
|
|
||||||
chSysHalt();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void shutdown() {
|
void shutdown() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue