Andrew Boyson
/
iot
Backing up an unused program in case of future need
esp.h@0:09f915e6f9f6, 2016-04-13 (annotated)
- Committer:
- andrewboyson
- Date:
- Wed Apr 13 09:21:02 2016 +0000
- Revision:
- 0:09f915e6f9f6
- Child:
- 2:06fa34661f19
Fixed memory allocation issues and added enumeration to log.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 0:09f915e6f9f6 | 1 | #define ESP_IDLE 0 |
andrewboyson | 0:09f915e6f9f6 | 2 | #define ESP_AVAILABLE 1 |
andrewboyson | 0:09f915e6f9f6 | 3 | #define ESP_TIMEOUT 2 |
andrewboyson | 0:09f915e6f9f6 | 4 | #define ESP_OVERFLOW 3 |
andrewboyson | 0:09f915e6f9f6 | 5 | |
andrewboyson | 0:09f915e6f9f6 | 6 | //#define BAUD 9600 |
andrewboyson | 0:09f915e6f9f6 | 7 | #define BAUD 19200 |
andrewboyson | 0:09f915e6f9f6 | 8 | //#define BAUD 38400 |
andrewboyson | 0:09f915e6f9f6 | 9 | //#define BAUD 76800 |
andrewboyson | 0:09f915e6f9f6 | 10 | //#define BAUD 115200 |
andrewboyson | 0:09f915e6f9f6 | 11 | |
andrewboyson | 0:09f915e6f9f6 | 12 | extern char EspLine[]; |
andrewboyson | 0:09f915e6f9f6 | 13 | extern void *EspIpdBuffer[]; |
andrewboyson | 0:09f915e6f9f6 | 14 | extern int EspIpdBufferLen[]; |
andrewboyson | 0:09f915e6f9f6 | 15 | extern int EspIpdReserved[]; |
andrewboyson | 0:09f915e6f9f6 | 16 | extern int EspIpdId; |
andrewboyson | 0:09f915e6f9f6 | 17 | extern int EspIpdLength; |
andrewboyson | 0:09f915e6f9f6 | 18 | extern int EspLineAvailable; |
andrewboyson | 0:09f915e6f9f6 | 19 | extern int EspDataAvailable; |
andrewboyson | 0:09f915e6f9f6 | 20 | extern int EspLineIs(char * text); |
andrewboyson | 0:09f915e6f9f6 | 21 | |
andrewboyson | 0:09f915e6f9f6 | 22 | extern int EspMain(); |
andrewboyson | 0:09f915e6f9f6 | 23 | extern void EspResetAndStop(); |
andrewboyson | 0:09f915e6f9f6 | 24 | extern void EspReleaseFromReset(void); |
andrewboyson | 0:09f915e6f9f6 | 25 | extern void EspInit(void); |
andrewboyson | 0:09f915e6f9f6 | 26 | extern void EspBaud(int baud); |
andrewboyson | 0:09f915e6f9f6 | 27 | |
andrewboyson | 0:09f915e6f9f6 | 28 | extern int EspLengthToSend; |
andrewboyson | 0:09f915e6f9f6 | 29 | extern const void * EspDataToSend; |
andrewboyson | 0:09f915e6f9f6 | 30 | extern void EspSendData(int length, const void * buf); |
andrewboyson | 0:09f915e6f9f6 | 31 | |
andrewboyson | 0:09f915e6f9f6 | 32 | extern void EspSendStringF(char *fmt, ...); |
andrewboyson | 0:09f915e6f9f6 | 33 | extern void EspSendString(char * buf); |