Some fixes

This commit is contained in:
me-no-dev
2020-08-22 23:37:42 +03:00
parent 0ac788f666
commit 86c87aaeee
6 changed files with 78 additions and 8 deletions

View File

@ -20,10 +20,6 @@
#ifndef HAL_ESP32_HAL_H_
#define HAL_ESP32_HAL_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
@ -36,6 +32,10 @@ extern "C" {
#include "esp_system.h"
#include "esp_sleep.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef F_CPU
#if CONFIG_IDF_TARGET_ESP32 // ESP32/PICO-D4
#define F_CPU (CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ * 1000000U)