mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
feat (driver) added new critical section API to UART driver
This commit is contained in:
@@ -20,14 +20,14 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if CONFIG_FREERTOS_UNICORE && !CONFIG_IDF_TARGET_ESP32S2
|
||||
#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32S2
|
||||
/**
|
||||
* This macro also helps users switching between spinlock declarations/definitions for multi-/single core environments
|
||||
* if the macros below aren't sufficient.
|
||||
*/
|
||||
#define OS_SPINLOCK 0
|
||||
#else
|
||||
#define OS_SPINLOCK 1
|
||||
#else
|
||||
#define OS_SPINLOCK 0
|
||||
#endif
|
||||
|
||||
#if OS_SPINLOCK == 1
|
||||
|
Reference in New Issue
Block a user