2022-01-07 21:02:27 +01:00
|
|
|
#ifndef _COMMON_H_
|
|
|
|
#define _COMMON_H_
|
|
|
|
|
2022-01-07 23:36:02 +01:00
|
|
|
#define Q(x) #x
|
|
|
|
#define QUOTE(x) Q(x)
|
|
|
|
|
2022-01-10 00:02:21 +01:00
|
|
|
#define GPIO_BUTTON D5
|
2022-01-07 21:02:27 +01:00
|
|
|
#define GPIO_LED D6
|
2022-01-10 00:02:21 +01:00
|
|
|
#define GPIO_TRIGGER D4
|
|
|
|
#define GPIO_PUMP D3
|
2022-01-07 21:02:27 +01:00
|
|
|
|
|
|
|
#ifndef HOST_NAME
|
|
|
|
#define HOST_NAME "ChainLube_%06X" // Use printf-Formatting - Chip-ID (uin32_t) will be added
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef OTA_DELAY
|
|
|
|
#define OTA_DELAY 50 // ticks -> 10ms / tick
|
|
|
|
#endif
|
|
|
|
|
2022-01-07 23:36:02 +01:00
|
|
|
#ifndef ADMIN_PASSWORD
|
|
|
|
#error "You need to define ADMIN_PASSWORD for OTA-Update"
|
2022-01-07 21:02:27 +01:00
|
|
|
#endif
|
|
|
|
#ifndef WIFI_PASSWORD
|
|
|
|
#error "You must define an WIFI_PASSWORD for OTA-Update"
|
|
|
|
#endif
|
|
|
|
#ifndef WIFI_SSID
|
|
|
|
#error "You must define an WIFI_SSID for OTA-Update"
|
|
|
|
#endif
|
2022-01-07 23:36:02 +01:00
|
|
|
#ifndef WIFI_AP_PASSWORD
|
|
|
|
#error "You must define an WIFI_AP_PASSWORD for Standalone AP-Mode"
|
|
|
|
#endif
|
2022-01-07 21:02:27 +01:00
|
|
|
|
|
|
|
#endif
|