mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-29 10:17:15 +02:00
Add Kconfig for IDF and option to disable HAL mutexes
IDF Options: - Autostart Arduino (implements app_main) - Disable HAL locks - Set HAL debug level - Auto-connect STA if configured (else will connect after WiFi.begin())
This commit is contained in:
@ -33,6 +33,14 @@ extern "C" {
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
#ifndef CONFIG_DISABLE_HAL_LOCKS
|
||||
#define CONFIG_DISABLE_HAL_LOCKS 0
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_AUTOSTART_ARDUINO
|
||||
#define CONFIG_AUTOSTART_ARDUINO 1
|
||||
#endif
|
||||
|
||||
//forward declaration from freertos/portmacro.h
|
||||
void vPortYield( void );
|
||||
#define yield() vPortYield()
|
||||
@ -56,6 +64,10 @@ uint32_t millis();
|
||||
void delay(uint32_t);
|
||||
void delayMicroseconds(uint32_t us);
|
||||
|
||||
#if !CONFIG_AUTOSTART_ARDUINO
|
||||
void initArduino();
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user