ESP-call

Dependents:   lab07-simple-timer poo_dino_game tset5 Esp_sendrecv_copy

Committer:
dshin
Date:
Mon May 23 05:19:52 2022 +0000
Revision:
0:11487122965a
ESP-call

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dshin 0:11487122965a 1 // ======================================================================
dshin 0:11487122965a 2
dshin 0:11487122965a 3 typedef struct NodeMCU_PGM_STRUCT {
dshin 0:11487122965a 4 const char *code; // NodeMCU code
dshin 0:11487122965a 5 int delay; // delay time in 1/10 sec unit
dshin 0:11487122965a 6 } NodeMCU_PGM;
dshin 0:11487122965a 7
dshin 0:11487122965a 8 // ======================================================================
dshin 0:11487122965a 9
dshin 0:11487122965a 10 extern RawSerial PC; // PC = (USBTX, USBRX)
dshin 0:11487122965a 11 extern RawSerial ESP; // ESP = (D1=TX, D0=RX)
dshin 0:11487122965a 12
dshin 0:11487122965a 13 // ======================================================================
dshin 0:11487122965a 14
dshin 0:11487122965a 15 extern char ESP_recv_buffer[]; // ESP receive buffer
dshin 0:11487122965a 16 extern int ESP_recv_buffer_index; // ESP receive buffer index
dshin 0:11487122965a 17
dshin 0:11487122965a 18 // ======================================================================
dshin 0:11487122965a 19
dshin 0:11487122965a 20 void ISR_PC_to_ESP();
dshin 0:11487122965a 21 void ISR_ESP_to_PC();
dshin 0:11487122965a 22
dshin 0:11487122965a 23 void ISR_ESP_to_recv_buffer();
dshin 0:11487122965a 24
dshin 0:11487122965a 25 // ======================================================================
dshin 0:11487122965a 26
dshin 0:11487122965a 27 void ESP_reset(void);
dshin 0:11487122965a 28
dshin 0:11487122965a 29 void ESP_echo(void);
dshin 0:11487122965a 30 void ESP_noecho(void);
dshin 0:11487122965a 31
dshin 0:11487122965a 32 char *ESP_call_single(NodeMCU_PGM pgm);
dshin 0:11487122965a 33 void ESP_call_multi(NodeMCU_PGM pgms[]);
dshin 0:11487122965a 34
dshin 0:11487122965a 35 // ======================================================================