Move CPLD management into PortaPack::init().

This commit is contained in:
Jared Boone 2016-07-18 11:30:45 -07:00
parent 5390c45e04
commit c0b9761fe5
2 changed files with 10 additions and 10 deletions

View file

@ -32,6 +32,8 @@ using namespace hackrf::one;
#include "touch_adc.hpp"
#include "audio.hpp"
#include "cpld_update.hpp"
namespace portapack {
portapack::IO io {
@ -149,6 +151,14 @@ void init() {
radio::init();
touch::adc::init();
if( !cpld_update_if_necessary() ) {
chSysHalt();
}
if( !cpld_hackrf_load_sram() ) {
chSysHalt();
}
}
void shutdown() {