mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-12 11:42:13 -04:00
Consolidate peripheral declarations.
This commit is contained in:
parent
8af8941687
commit
1d16cd8aac
8 changed files with 244 additions and 158 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue