|
F439_CPP_TX-RX_LoRa_Project
|
STMicroelectronics lock mechanisms. More...
#include <stdint.h>#include <stddef.h>#include <cmsis_compiler.h>

Go to the source code of this file.
Data Structures | |
| struct | LockingData_t |
Macros | |
| #define | STM32_THREAD_SAFE_STRATEGY 2 |
| #define | STM32_LOCK_BLOCK() |
| #define | STM32_LOCK_BLOCK_IF_NULL_ARGUMENT(x) |
| #define | STM32_LOCK_BLOCK_IF_INTERRUPT_CONTEXT() |
| #define | STM32_LOCK_UNUSED(var) (void)var |
| #define | STM32_LOCK_ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0])) |
| #define | LOCKING_DATA_INIT { 0, 0 } |
Functions | |
| void | Error_Handler (void) |
| Global Error_Handler. | |
STMicroelectronics lock mechanisms.
This implementation supports the following strategies for handling thread-safe locks. The strategy can be explicitly selected by defining \STM32_THREAD_SAFE_STRATEGY = <number> in the project. Please look at the '<toolchain/library>_lock_glue.c' file for more details.
Copyright (c) 2025 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 LOCKING_DATA_INIT { 0, 0 } |
Initialize members in instance of LockingData_t structure
| #define STM32_LOCK_ARRAY_SIZE | ( | array | ) | (sizeof(array) / sizeof((array)[0])) |
Size of array
| #define STM32_LOCK_BLOCK | ( | ) |
Blocks execution
| #define STM32_LOCK_BLOCK_IF_INTERRUPT_CONTEXT | ( | ) |
Blocks execution if in interrupt context
| #define STM32_LOCK_BLOCK_IF_NULL_ARGUMENT | ( | x | ) |
Blocks execution if argument is NULL
| #define STM32_LOCK_UNUSED | ( | var | ) | (void)var |
Hide unused parameter warning from compiler
| #define STM32_THREAD_SAFE_STRATEGY 2 |
Assume strategy 2 if not specified
| void Error_Handler | ( | void | ) |
Global Error_Handler.