CPLD: Organize CPLD code into namespaces.

Use type aliases to hide actual CPLD type (somewhat).
This commit is contained in:
Jared Boone
2017-06-02 21:57:13 -07:00
parent dd0c009e6f
commit dec4e41189
6 changed files with 51 additions and 22 deletions

View File

@@ -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__*/