diff options
Diffstat (limited to 'include/utils.h')
| -rw-r--r-- | include/utils.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/utils.h b/include/utils.h new file mode 100644 index 0000000..a337ba3 --- /dev/null +++ b/include/utils.h @@ -0,0 +1,16 @@ +#ifndef __INCLUDE_UTILS__ +#define __INCLUDE_UTILS__ + +struct structCfg { + char *pathSerialPort; + char *pathGpioChip; + int pinPwrKey, pinStatus; +}; + +int checkPinVal(char *pathToChip, int pinNum); + +int readCfg(struct structCfg *dataCfg, const char *pathExe); + +int freeCfgData(struct structCfg *dataCfg); + +#endif |
