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

@@ -22,16 +22,16 @@
#ifndef __PORTAPACK_CPLD_DATA_H__
#define __PORTAPACK_CPLD_DATA_H__
#include "cpld_max5.hpp"
#include <cstdint>
#include <array>
namespace portapack {
namespace cpld {
struct Config {
const std::array<uint16_t, 3328>& block_0;
const std::array<uint16_t, 512>& block_1;
};
using CPLD = ::cpld::max5::CPLD;
using Config = ::cpld::max5::Config;
namespace rev_20150901 {