driver: clean pcnt.h i2s.h

This commit is contained in:
morris 2020-03-02 12:07:47 +08:00
parent 328c659cd3
commit 077d68c752
5 changed files with 15 additions and 17 deletions

View File

@ -20,15 +20,18 @@
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h"
#include "freertos/queue.h" #include "freertos/queue.h"
#include "freertos/xtensa_api.h" #include "freertos/xtensa_api.h"
#include "freertos/semphr.h"
#include "esp32/rom/lldesc.h" #include "esp32/rom/lldesc.h"
#include "driver/gpio.h" #include "driver/gpio.h"
#include "driver/i2s.h" #include "driver/i2s.h"
#include "driver/dac.h" #include "driver/dac.h"
#include "hal/i2s_hal.h"
#include "adc1_i2s_private.h" #include "adc1_i2s_private.h"
#include "esp_intr_alloc.h" #include "esp_intr_alloc.h"
#include "esp_err.h" #include "esp_err.h"
#include "esp_attr.h"
#include "esp_log.h" #include "esp_log.h"
#include "esp_pm.h" #include "esp_pm.h"
#include "esp_efuse.h" #include "esp_efuse.h"

View File

@ -14,21 +14,14 @@
#pragma once #pragma once
#include "esp_types.h"
#include "esp_err.h" #include "esp_err.h"
#include <esp_types.h> #include "freertos/FreeRTOS.h"
#include "soc/soc.h"
#include "soc/gpio_periph.h"
#include "soc/i2s_periph.h" #include "soc/i2s_periph.h"
#include "soc/rtc_periph.h" #include "soc/rtc_periph.h"
#include "soc/i2s_caps.h" #include "soc/i2s_caps.h"
#include "esp32/rom/gpio.h"
#include "esp_attr.h"
#include "esp_intr_alloc.h"
#include "driver/periph_ctrl.h" #include "driver/periph_ctrl.h"
#include "driver/adc.h" #include "driver/adc.h" // adc1_channel_t typedef
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#include "hal/i2s_hal.h"
#include "hal/i2s_types.h" #include "hal/i2s_types.h"
#ifdef __cplusplus #ifdef __cplusplus

View File

@ -14,17 +14,13 @@
#pragma once #pragma once
#include <esp_types.h> #include "esp_types.h"
#include "esp_intr_alloc.h"
#include "esp_err.h" #include "esp_err.h"
#include "esp_intr_alloc.h"
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#include "freertos/xtensa_api.h"
#include "soc/soc.h"
#include "soc/pcnt_caps.h"
#include "driver/gpio.h" #include "driver/gpio.h"
#include "hal/pcnt_types.h" #include "hal/pcnt_types.h"
#include "hal/pcnt_hal.h" #include "soc/pcnt_periph.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {

View File

@ -12,9 +12,14 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#include "freertos/xtensa_api.h"
#include "esp_log.h" #include "esp_log.h"
#include "driver/pcnt.h" #include "driver/pcnt.h"
#include "driver/periph_ctrl.h" #include "driver/periph_ctrl.h"
#include "hal/pcnt_hal.h"
#include "soc/pcnt_caps.h"
#define PCNT_CHANNEL_ERR_STR "PCNT CHANNEL ERROR" #define PCNT_CHANNEL_ERR_STR "PCNT CHANNEL ERROR"
#define PCNT_UNIT_ERR_STR "PCNT UNIT ERROR" #define PCNT_UNIT_ERR_STR "PCNT UNIT ERROR"

View File

@ -15,3 +15,4 @@
#pragma once #pragma once
#include "soc/pcnt_reg.h" #include "soc/pcnt_reg.h"
#include "soc/pcnt_struct.h" #include "soc/pcnt_struct.h"
#include "soc/pcnt_caps.h"