diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2021-06-04 23:49:40 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2021-06-04 23:49:40 +0200 |
commit | da3ebb99ab95e659f2dc3e51fd1182258878011c (patch) | |
tree | ebb9d6b06d34374ea4c258014ab848fadad85fcf /src/cmd.h | |
parent | 27321e05de35b494c2b282652e1c40a18435b68b (diff) | |
download | analog_instruments-da3ebb99ab95e659f2dc3e51fd1182258878011c.tar.gz |
command parser
Diffstat (limited to 'src/cmd.h')
-rw-r--r-- | src/cmd.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/cmd.h b/src/cmd.h new file mode 100644 index 0000000..c547f6e --- /dev/null +++ b/src/cmd.h @@ -0,0 +1,28 @@ +/* + * src/cmd.h + * (c) 2021 Jonas Gunz <himself@jonasgunz.de> + * License: All rights reserved. + */ + +#ifndef _CMD_H_ +#define _CMD_H_ + +#include <stdint.h> + +#include "uart.h" + +#define _CMD_CNT 2 +#define _CMD_MAX_ARGC 4 + +#define _ERR_CMD 1 +#define _ERR_ARGC 2 + +void cmd_init(); + +void cmd_tick(char _c); + +void cmd_set_pwm(uint8_t _argv[]); + +void cmd_err(uint8_t _argv[]); + +#endif |