ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
1.0
ESP8266ILI9341DisplayProject
|
Go to the source code of this file.
Macros | |
#define | SPI 0 |
#define | HSPI 1 |
#define | HSPI_FIFO_SIZE 64 |
#define | CONFIG_FOR_TX 1 |
#define | CONFIG_FOR_RX_TX 2 |
Functions | |
void | hspi_init (uint32_t prescale, int hwcs) |
HSPI Initiaization - with automatic chip select Pins: MISO GPIO12 MOSI GPIO13 CLK GPIO14 CS GPIO15 - optional DC GPIO2. More... | |
void | hspi_waitReady (void) |
HSPI Ready wait. More... | |
void | hspi_TX (uint8_t *data, int count) |
SPI buffered write functions. More... | |
void | hspi_TXRX (uint8_t *data, int count) |
HSPI write and read using FIFO. More... | |
void | hspi_RX (uint8_t *data, int count) |
HSPI read using FIFO. More... | |
#define CONFIG_FOR_RX_TX 2 |
Definition at line 16 of file hspi.h.
Referenced by hspi_config(), hspi_RX(), and hspi_TXRX().
#define CONFIG_FOR_TX 1 |
Definition at line 15 of file hspi.h.
Referenced by hspi_config(), and hspi_TX().
#define HSPI 1 |
Definition at line 12 of file hspi.h.
Referenced by hspi_config(), hspi_init(), hspi_readFIFO(), hspi_setBits(), hspi_startSend(), hspi_waitReady(), and hspi_writeFIFO().
#define HSPI_FIFO_SIZE 64 |
Definition at line 13 of file hspi.h.
Referenced by hspi_readFIFO(), hspi_RX(), hspi_TX(), hspi_TXRX(), and hspi_writeFIFO().
void hspi_init | ( | uint32_t | prescale, |
int | hwcs | ||
) |
HSPI Initiaization - with automatic chip select Pins: MISO GPIO12 MOSI GPIO13 CLK GPIO14 CS GPIO15 - optional DC GPIO2.
[in] | prescale | prescale from CPU clock 0 .. 0x1fff |
[in] | hwcs | enable GPIO15 hardware chip select |
Definition at line 55 of file hspi.c.
Referenced by setup(), and spi_init().
void hspi_RX | ( | uint8_t * | data, |
int | count | ||
) |
HSPI read using FIFO.
[in] | *data | receive buffer |
[in] | count | number of bytes to read |
Definition at line 318 of file hspi.c.
Referenced by spi_RX(), and spi_RX_buffer().
void hspi_TX | ( | uint8_t * | data, |
int | count | ||
) |
SPI buffered write functions.
=================================================================HSPI write using FIFO
[in] | *data | transmit buffer |
[in] | count | number of bytes to write |
Definition at line 265 of file hspi.c.
Referenced by spi_TX(), and spi_TX_buffer().
void hspi_TXRX | ( | uint8_t * | data, |
int | count | ||
) |
HSPI write and read using FIFO.
[in] | *data | transmit / receive buffer |
[in] | count | number of bytes to write / read |
Definition at line 292 of file hspi.c.
Referenced by spi_TXRX(), and spi_TXRX_buffer().
void hspi_waitReady | ( | void | ) |
HSPI Ready wait.
Definition at line 159 of file hspi.c.
Referenced by esp_yield(), hspi_config(), hspi_init(), hspi_RX(), hspi_TX(), hspi_TXRX(), loop_wrapper(), and spi_waitReady().