continue developing GPIO config; not tested yet

This commit is contained in:
Edward Emelianov
2026-03-09 01:24:02 +03:00
parent d39682b143
commit 9713b10cd4
10 changed files with 470 additions and 38 deletions

View File

@@ -21,6 +21,7 @@
// error codes for answer message
typedef enum{
ERR_OK, // all OK
ERR_BADCMD, // wrong command
ERR_BADPAR, // wrong parameter
ERR_BADVAL, // wrong value (for setter)
ERR_WRONGLEN, // wrong message length
@@ -29,6 +30,8 @@ typedef enum{
} errcodes_t;
// maximal length of command (without trailing zero)
#define CMD_MAXLEN (15)
#define CMD_MAXLEN 15
// maximal available parameter number
#define MAXPARNO 255
void chk(char *str);