2020-04-23 01:22:42 -04:00
|
|
|
#ifndef __MAIN_H_
|
|
|
|
#define __MAIN_H_
|
|
|
|
|
2020-04-23 01:43:27 -04:00
|
|
|
#include "nvs_flash.h"
|
|
|
|
|
2020-10-13 00:33:29 -04:00
|
|
|
#define PUMP_COUNT (4)
|
2020-04-23 01:22:42 -04:00
|
|
|
|
|
|
|
extern uint8_t mac[6];
|
2020-10-13 00:33:29 -04:00
|
|
|
static uint8_t pump_gpio_map[] = { 27, 26, 25, 23 };
|
2020-04-23 01:43:27 -04:00
|
|
|
|
2020-10-13 00:33:29 -04:00
|
|
|
#define GPIO_PUMP_PIN_SEL ((1ULL<<pump_gpio_map[0]) | (1ULL<<pump_gpio_map[1]) | (1ULL<<pump_gpio_map[2]) | (1ULL<<pump_gpio_map[3]));
|
2020-04-23 01:43:27 -04:00
|
|
|
|
2020-04-23 01:22:42 -04:00
|
|
|
#endif
|