eLooM for STM32 application
v3.3.0
|
eLooM critical section. More...
#include "tx_api.h"
Go to the source code of this file.
Macros | |
#define | SYS_DECLARE_CS_IMP(cs) UINT cs |
#define | SYS_ENTER_CRITICAL_IMP(cs) cs = tx_interrupt_control(TX_INT_DISABLE) |
#define | SYS_EXIT_CRITICAL_IMP(cs) tx_interrupt_control(cs) |
eLooM critical section.
This service provides a critical section with an API independent from the RTOS. For ThreadX we use the API tx_interrupt_control.
Copyright (c) 2022 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
#define SYS_DECLARE_CS_IMP | ( | cs | ) | UINT cs |
Used to declare a critical section (cs) object.
#define SYS_ENTER_CRITICAL_IMP | ( | cs | ) | cs = tx_interrupt_control(TX_INT_DISABLE) |
Used to enter a critical section.
#define SYS_EXIT_CRITICAL_IMP | ( | cs | ) | tx_interrupt_control(cs) |
Used to exit a critical section.