mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-27 16:56:15 -04: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:
parent
76c2cc77af
commit
a3483a8394
4 changed files with 21 additions and 10 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue