Consolidate peripheral declarations.

This commit is contained in:
Jared Boone 2015-08-01 13:42:27 -07:00
parent 8af8941687
commit 1d16cd8aac
8 changed files with 244 additions and 158 deletions

View file

@ -36,8 +36,7 @@
#include "hackrf_gpio.hpp"
using namespace hackrf::one;
#include "spi_pp.hpp"
extern SPI ssp1;
#include "portapack.hpp"
namespace radio {
@ -75,7 +74,7 @@ static constexpr SPIConfig ssp_config_max5864 = {
.cpsr = ssp1_cpsr,
};
static spi::arbiter::Arbiter ssp1_arbiter(ssp1);
static spi::arbiter::Arbiter ssp1_arbiter(portapack::ssp1);
static spi::arbiter::Target ssp1_target_max2837 {
ssp1_arbiter,