firmware
IEM Firmware Documentation
|
STMicroelectronics lock mechanisms. More...
#include <stdint.h>
#include <stddef.h>
#include <cmsis_compiler.h>
Go to the source code of this file.
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) |
#define | STM32_LOCK_ARRAY_SIZE(array) |
Functions | |
void | Error_Handler (void) |
This function is executed in case of error occurrence. |
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.
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause
#define STM32_LOCK_ARRAY_SIZE | ( | array | ) |
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 | ) |
Hide unused parameter warning from compiler
#define STM32_THREAD_SAFE_STRATEGY 2 |
Assume strategy 2 if not specified
void Error_Handler | ( | void | ) |
This function is executed in case of error occurrence.
None |
This function is executed in case of error occurrence.