mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-10-07 11:20:55 +02:00
Initial Commit
This commit is contained in:
@@ -37,7 +37,11 @@ extern "C" {
|
||||
#include "esp_sleep.h"
|
||||
|
||||
#ifndef F_CPU
|
||||
#if CONFIG_IDF_TARGET_ESP32 // ESP32/PICO-D4
|
||||
#define F_CPU (CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ * 1000000U)
|
||||
#elif CONFIG_IDF_TARGET_ESP32S2
|
||||
#define F_CPU (CONFIG_ESP32S2_DEFAULT_CPU_FREQ_MHZ * 1000000U)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//forward declaration from freertos/portmacro.h
|
||||
|
Reference in New Issue
Block a user