mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-02 20:31:46 +00:00
CPLD: Introduce Config type to clean up programming interface.
Hide the details of how the CPLD data is stored.
This commit is contained in:
@@ -176,11 +176,11 @@ void init() {
|
||||
clock_manager.run_at_full_speed();
|
||||
|
||||
if( portapack_model() == PortaPackModel::R2_20170522 ) {
|
||||
if( !cpld_update_if_necessary(portapack::cpld::rev_20170522::block_0, portapack::cpld::rev_20170522::block_1) ) {
|
||||
if( !cpld_update_if_necessary(portapack::cpld::rev_20170522::config) ) {
|
||||
chSysHalt();
|
||||
}
|
||||
} else {
|
||||
if( !cpld_update_if_necessary(portapack::cpld::rev_20150901::block_0, portapack::cpld::rev_20150901::block_1) ) {
|
||||
if( !cpld_update_if_necessary(portapack::cpld::rev_20150901::config) ) {
|
||||
chSysHalt();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user