blob: 26af12dcb8650b22b4a58de8a7592d46ff715b3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#define STM32F1
#include <stdint.h>
#include <stdbool.h>
#include <sys/types.h>
#include <libopencm3/stm32/gpio.h>
#include "ili9341.h"
#ifndef SPI_SW
#define SPI_SW
#define TRAILING_EDGE false
typedef struct {
uint16_t MOSI_pin;
uint16_t CLK_pin;
uint16_t delay;
} SPI_IMPL;
SPI_IMPL SpiInit(uint16_t MOSI_pin, uint16_t CLK_pin);
void SpiSend(SPI_IMPL *spi, uint8_t playload);
#endif //SPI_SW
|