Optimize GPIO and account for micros overflow in delayMicroseconds

This commit is contained in:
me-no-dev
2016-12-02 13:03:48 +02:00
parent 3c81739b33
commit 6db0ee1304
3 changed files with 86 additions and 69 deletions

View File

@ -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