ILI9341 display driver (with SPI DMA) for STM32F4 targets. Fork of https://os.mbed.com/users/beaglescout007/code/Nucleo_Ex06_EMU/file/3dac1f1bc9e0/TFT/. Added support for STM32F407 (Seeed Arch Max).
Dependents: STM32F407VET6_Pong
Diff: spidma.h
- Revision:
- 0:5c2870105122
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/spidma.h Thu Apr 11 20:10:38 2019 +0000 @@ -0,0 +1,22 @@ +/*===================================================================*/ +/* */ +/* spidma.h : SPI DMA function header */ +/* */ +/* 2016/1/20 Racoon */ +/* */ +/*===================================================================*/ + +#ifndef SPIDMA_H_INCLUDED +#define SPIDMA_H_INCLUDED + +#include "stm32f4xx_hal_spi.h" + +void spi_init(); +void spi_write(uint8_t data); +void spi_writew(uint16_t data); +void spi_write(uint8_t* pData, uint16_t size); + +extern SPI_HandleTypeDef SpiHandle; + +#endif +