feat (driver) added new critical section API to UART driver

This commit is contained in:
Jakob Hasse
2022-07-12 19:04:26 +08:00
parent 6b1d0f99d7
commit fd04374aa5
2 changed files with 12 additions and 11 deletions

View File

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