1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

CS is now software controlled. Otherwise ESP has problems with receiving data over SPI

This commit is contained in:
Sermus
2015-04-02 09:50:01 +03:00
parent 4626a9df80
commit fd4215aa22
4 changed files with 17 additions and 14 deletions

View File

@ -27,7 +27,7 @@ private:
uint32_t _clkDiv;
uint32_t *spi_fifo;
const uint32_t hspi_port = 1;
const uint32_t hspi_fifo_size = 32;
const uint32_t hspi_fifo_size = 16;
private:
inline void hspi_wait_ready(void){while (READ_PERI_REG(SPI_FLASH_CMD(hspi_port))&SPI_FLASH_USR);}