Refactoring: common.h with common typedefs etc.
This commit is contained in:
parent
3a07b3ab6f
commit
55b08b7630
7 changed files with 26 additions and 18 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue