On PortaPack shutdown, init HackRF CPLD to EEPROM bitstream.

This commit is contained in:
Jared Boone 2016-07-18 11:32:14 -07:00
parent 4b7fa9f411
commit 77291b4e31
3 changed files with 11 additions and 0 deletions

View File

@ -113,3 +113,10 @@ bool cpld_hackrf_verify_eeprom() {
return ok;
}
void cpld_hackrf_init_from_eeprom() {
auto jtag_target_hackrf_cpld = jtag_target_hackrf();
cpld::xilinx::XC2C64A hackrf_cpld { jtag_target_hackrf_cpld };
hackrf_cpld.init_from_eeprom();
}

View File

@ -26,5 +26,6 @@ bool cpld_update_if_necessary();
bool cpld_hackrf_load_sram();
bool cpld_hackrf_verify_eeprom();
void cpld_hackrf_init_from_eeprom();
#endif/*__CPLD_UPDATE_H__*/

View File

@ -166,6 +166,9 @@ void shutdown() {
radio::disable();
audio::shutdown();
cpld_hackrf_init_from_eeprom();
clock_manager.shutdown();
power.shutdown();