Update LEDC, PCNT,Timer_Group driver for esp32s2beta.

This commit is contained in:
kooho
2019-06-06 14:20:39 +08:00
parent eae6f5a1d6
commit f98e7bbccf
22 changed files with 1442 additions and 3733 deletions

View File

@@ -15,3 +15,16 @@
#pragma once
#include "soc/ledc_reg.h"
#include "soc/ledc_struct.h"
/*
Stores a bunch of per-ledc-peripheral data.
*/
typedef struct {
const uint8_t sig_out0_idx;
} ledc_signal_conn_t;
#if CONFIG_IDF_TARGET_ESP32S2BETA
extern const ledc_signal_conn_t ledc_periph_signal[1];
#elif defined CONFIG_IDF_TARGET_ESP32
extern const ledc_signal_conn_t ledc_periph_signal[2];
#endif