CPLD: Use correct bitstream for updating hardware.

Determine hardware version and use one of two CPLD bitstream files.
This commit is contained in:
Jared Boone
2017-05-31 22:28:07 -07:00
parent 73d62367d1
commit 797e63a590
10 changed files with 15722 additions and 4037 deletions
+7 -1
View File
@@ -22,7 +22,13 @@
#ifndef __CPLD_UPDATE_H__
#define __CPLD_UPDATE_H__
bool cpld_update_if_necessary();
#include <cstdint>
#include <array>
bool cpld_update_if_necessary(
const std::array<uint16_t, 3328>& block_0,
const std::array<uint16_t, 512>& block_1
);
bool cpld_hackrf_load_sram();
bool cpld_hackrf_verify_eeprom();