2022-05-28 01:00:56 +01:00
|
|
|
#pragma once
|
|
|
|
#include "pimoroni_common.hpp"
|
|
|
|
#include "hardware/gpio.h"
|
|
|
|
#include "hardware/spi.h"
|
|
|
|
|
|
|
|
namespace pimoroni {
|
|
|
|
struct SPIPins {
|
|
|
|
spi_inst_t *spi;
|
|
|
|
uint cs;
|
|
|
|
uint sck;
|
|
|
|
uint mosi;
|
|
|
|
uint miso;
|
2022-05-28 23:00:43 +01:00
|
|
|
uint dc;
|
2022-05-28 01:00:56 +01:00
|
|
|
uint bl;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct ParallelPins {
|
|
|
|
uint cs;
|
|
|
|
uint dc;
|
|
|
|
uint wr_sck;
|
|
|
|
uint rd_sck;
|
|
|
|
uint d0;
|
|
|
|
uint bl;
|
|
|
|
};
|
|
|
|
|
|
|
|
SPIPins get_spi_pins(BG_SPI_SLOT slot);
|
|
|
|
}
|