The final project of Embedde class.

Committer:
dshin
Date:
Wed May 12 03:11:56 2021 +0000
Revision:
0:6489e982d4c9
Child:
1:c51792ac72d6

        

Who changed what in which revision?

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