Refactoring: common.h with common typedefs etc.

This commit is contained in:
Lexi / Zoe 2021-04-04 17:18:45 +02:00
parent 3a07b3ab6f
commit 55b08b7630
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
7 changed files with 26 additions and 18 deletions

View file

@ -1,8 +1,7 @@
#ifndef PARSING_H_
#define PARSING_H_
#include "config.h"
#include "eeprom.h"
#include "common.h"
#include <stdbool.h>
// Type definition for a command line with optional argument (actually just two pointers to strings)
@ -11,13 +10,6 @@ typedef struct {
char* arg;
} CommandLine;
// Type definition for address ranges (from-to)
typedef struct {
bool isValid;
address_t from;
address_t to;
} AddressRange;
void parseNextCommand();
CommandLine readNextCommand(char* buffer, uint8_t bufferLength);
CommandLine tokenizeCommand(char* cmd);