mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-29 10:17:15 +02:00
Optimize GPIO and account for micros overflow in delayMicroseconds
This commit is contained in:
@ -34,6 +34,10 @@ extern "C" {
|
||||
#include <math.h>
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#ifndef F_CPU
|
||||
#define F_CPU (CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ * 1000000U)
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_DISABLE_HAL_LOCKS
|
||||
#define CONFIG_DISABLE_HAL_LOCKS 0
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user