eLooM for STM32 application  v3.3.0
Loading...
Searching...
No Matches
Macros
syscs_threadx.h File Reference

eLooM critical section. More...

#include "tx_api.h"
+ Include dependency graph for syscs_threadx.h:
+ This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

eLooM critical section.

Author
STMicroelectronics - AIS - MCD Team
Version
M.m.b
Date
June 16, 2022

This service provides a critical section with an API independent from the RTOS. For ThreadX we use the API tx_interrupt_control.

Attention

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.

Macro Definition Documentation

◆ SYS_DECLARE_CS_IMP

#define SYS_DECLARE_CS_IMP (   cs)    UINT cs

Used to declare a critical section (cs) object.

◆ SYS_ENTER_CRITICAL_IMP

#define SYS_ENTER_CRITICAL_IMP (   cs)    cs = tx_interrupt_control(TX_INT_DISABLE)

Used to enter a critical section.

◆ SYS_EXIT_CRITICAL_IMP

#define SYS_EXIT_CRITICAL_IMP (   cs)    tx_interrupt_control(cs)

Used to exit a critical section.