CPLD: Introduce Config type to clean up programming interface.

Hide the details of how the CPLD data is stored.
This commit is contained in:
Jared Boone
2017-06-02 16:54:24 -07:00
parent 76c2cc77af
commit a3483a8394
4 changed files with 21 additions and 10 deletions
+2 -4
View File
@@ -22,12 +22,10 @@
#ifndef __CPLD_UPDATE_H__
#define __CPLD_UPDATE_H__
#include <cstdint>
#include <array>
#include "portapack_cpld_data.hpp"
bool cpld_update_if_necessary(
const std::array<uint16_t, 3328>& block_0,
const std::array<uint16_t, 512>& block_1
const portapack::cpld::Config config
);
bool cpld_hackrf_load_sram();