Refactor protocol/parsing code; implement address parsing

This commit is contained in:
Lexi / Zoe 2021-04-04 02:50:25 +02:00
parent 28be3c4e8b
commit bc849d9662
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
7 changed files with 303 additions and 159 deletions

18
firmware/src/commands.h Normal file
View file

@ -0,0 +1,18 @@
#ifndef COMMANDS_H_
#define COMMANDS_H_
#include "config.h"
#include "parsing.h"
void executeCommand(CommandLine cmdLine);
void commandInit();
void commandRead(char* arg);
void commandWrite(char* arg);
void commandErase();
// TODO commands only for testing
void commandTestRead();
void commandTestWrite(char* arg);
#endif /* COMMANDS_H_ */