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

Cleaning the code

This commit is contained in:
mlafauci
2011-04-30 07:48:10 +02:00
parent c10210a881
commit 8d1761f009
5 changed files with 29 additions and 72 deletions

View File

@ -5,9 +5,9 @@
#include "wifi_spi.h"
#define WAIT_CHAR_DELAY 100
#define TIMEOUT_CHAR_DELAY 10
#define TIMEOUT_CHAR_DELAY 1 //10
#define TIMEOUT_READY_SLAVE 1000
#define SPI_TX_DELAY 5
#define SPI_TX_DELAY 1
#define SPI_START_CMD_DELAY 10
@ -18,8 +18,7 @@
#define WAIT_FOR_SLAVE_SELECT() \
SpiDrv::waitForSlaveReady(); \
SpiDrv::spiSlaveSelect(); \
delayMicroseconds(SPI_TX_DELAY);
SpiDrv::spiSlaveSelect();
@ -43,7 +42,7 @@ public:
static void waitForSlaveReady();
static int waitSpiChar(char waitChar, char* readChar);
//static int waitSpiChar(char waitChar, char* readChar);
static int waitSpiChar(unsigned char waitChar);