Add KiCad files and USB CDC logging support
This commit is contained in:
@@ -2,15 +2,32 @@
|
||||
|
||||
#include "driver/gpio.h"
|
||||
#include "esp_log.h"
|
||||
#include "sdkconfig.h"
|
||||
|
||||
static const char *TAG = "dcdc";
|
||||
|
||||
#ifndef CONFIG_WATCH_DCDC_EN_GPIO_0
|
||||
#define CONFIG_WATCH_DCDC_EN_GPIO_0 2
|
||||
#endif
|
||||
#ifndef CONFIG_WATCH_DCDC_EN_GPIO_1
|
||||
#define CONFIG_WATCH_DCDC_EN_GPIO_1 4
|
||||
#endif
|
||||
#ifndef CONFIG_WATCH_DCDC_EN_GPIO_2
|
||||
#define CONFIG_WATCH_DCDC_EN_GPIO_2 5
|
||||
#endif
|
||||
#ifndef CONFIG_WATCH_DCDC_EN_GPIO_3
|
||||
#define CONFIG_WATCH_DCDC_EN_GPIO_3 18
|
||||
#endif
|
||||
#ifndef CONFIG_WATCH_DCDC_EN_GPIO_4
|
||||
#define CONFIG_WATCH_DCDC_EN_GPIO_4 19
|
||||
#endif
|
||||
|
||||
static const gpio_num_t s_dcdc_gpio_map[DCDC_CHANNEL_COUNT] = {
|
||||
GPIO_NUM_2,
|
||||
GPIO_NUM_4,
|
||||
GPIO_NUM_5,
|
||||
GPIO_NUM_18,
|
||||
GPIO_NUM_19,
|
||||
(gpio_num_t)CONFIG_WATCH_DCDC_EN_GPIO_0,
|
||||
(gpio_num_t)CONFIG_WATCH_DCDC_EN_GPIO_1,
|
||||
(gpio_num_t)CONFIG_WATCH_DCDC_EN_GPIO_2,
|
||||
(gpio_num_t)CONFIG_WATCH_DCDC_EN_GPIO_3,
|
||||
(gpio_num_t)CONFIG_WATCH_DCDC_EN_GPIO_4,
|
||||
};
|
||||
|
||||
static bool s_initialized;
|
||||
|
||||
Reference in New Issue
Block a user