added python tool inital version
This commit is contained in:
19
firmware/src/protocol.h
Normal file
19
firmware/src/protocol.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef PROTOCOL_H
|
||||
#define PROTOCOL_H
|
||||
|
||||
typedef enum {
|
||||
PS_WAITING_FOR_COMMAND,
|
||||
PS_READING_COMMAND,
|
||||
PS_READING_PARAMETERS,
|
||||
PS_WAITING_FOR_END_OF_LINE,
|
||||
} protocol_state_t;
|
||||
|
||||
typedef enum {
|
||||
CMD_INVALID = 0,
|
||||
CMD_INFO,
|
||||
CMD_LS,
|
||||
CMD_PUT_BINARY_FILE,
|
||||
/* Weitere Kommandos folgen hier */
|
||||
} protocol_cmd_t;
|
||||
|
||||
#endif // PROTOCOL_H
|
||||
Reference in New Issue
Block a user