mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-12-09 21:16:25 -05:00
CPLD: Organize CPLD code into namespaces.
Use type aliases to hide actual CPLD type (somewhat).
This commit is contained in:
parent
dd0c009e6f
commit
dec4e41189
6 changed files with 51 additions and 22 deletions
|
|
@ -24,12 +24,24 @@
|
|||
|
||||
#include "portapack_cpld_data.hpp"
|
||||
|
||||
bool cpld_update_if_necessary(
|
||||
const portapack::cpld::Config config
|
||||
namespace portapack {
|
||||
namespace cpld {
|
||||
|
||||
bool update_if_necessary(
|
||||
const Config config
|
||||
);
|
||||
|
||||
bool cpld_hackrf_load_sram();
|
||||
bool cpld_hackrf_verify_eeprom();
|
||||
void cpld_hackrf_init_from_eeprom();
|
||||
} /* namespace cpld */
|
||||
} /* namespace portapack */
|
||||
|
||||
namespace hackrf {
|
||||
namespace cpld {
|
||||
|
||||
bool load_sram();
|
||||
bool verify_eeprom();
|
||||
void init_from_eeprom();
|
||||
|
||||
} /* namespace cpld */
|
||||
} /* namespace hackrf */
|
||||
|
||||
#endif/*__CPLD_UPDATE_H__*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue