![]() |
Basic Native CMSIS Register Access Documentation 1.0
The Common Microcontroller Software Interface Standard (CMSIS) simplifies microcontroller software development, providing a consistent and efficient interface for developers working with Cortex-M and entry-level Cortex-A processors. It promotes code reuse, portability, and interoperability, enabling developers to focus on application-level logic rather than dealing with low-level hardware details.
|

Macros | |
| #define | SET_BIT(REG, BIT) ((REG) |= (BIT)) |
| #define | CLEAR_BIT(REG, BIT) ((REG) &= ~(BIT)) |
| #define | READ_BIT(REG, BIT) ((REG) & (BIT)) |
| #define | CLEAR_REG(REG) ((REG) = (0x0)) |
| #define | WRITE_REG(REG, VAL) ((REG) = (VAL)) |
| #define | READ_REG(REG) ((REG)) |
| #define | MODIFY_REG(REG, CLEARMASK, SETMASK) WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK))) |
| #define | POSITION_VAL(VAL) (__CLZ(__RBIT(VAL))) |
| #define | ATOMIC_SET_BIT(REG, BIT) |
| #define | ATOMIC_CLEAR_BIT(REG, BIT) |
| #define | ATOMIC_MODIFY_REG(REG, CLEARMSK, SETMASK) |
| #define | ATOMIC_SETH_BIT(REG, BIT) |
| #define | ATOMIC_CLEARH_BIT(REG, BIT) |
| #define | ATOMIC_MODIFYH_REG(REG, CLEARMSK, SETMASK) |
| #define ATOMIC_CLEAR_BIT | ( | REG, | |
| BIT | |||
| ) |
#include <stm32f7xx.h>
| #define ATOMIC_CLEARH_BIT | ( | REG, | |
| BIT | |||
| ) |
#include <stm32f7xx.h>
| #define ATOMIC_MODIFY_REG | ( | REG, | |
| CLEARMSK, | |||
| SETMASK | |||
| ) |
#include <stm32f7xx.h>
| #define ATOMIC_MODIFYH_REG | ( | REG, | |
| CLEARMSK, | |||
| SETMASK | |||
| ) |
#include <stm32f7xx.h>
| #define ATOMIC_SET_BIT | ( | REG, | |
| BIT | |||
| ) |
#include <stm32f7xx.h>
| #define ATOMIC_SETH_BIT | ( | REG, | |
| BIT | |||
| ) |
#include <stm32f7xx.h>
| #define CLEAR_BIT | ( | REG, | |
| BIT | |||
| ) | ((REG) &= ~(BIT)) |
#include <stm32f7xx.h>
| #define CLEAR_REG | ( | REG | ) | ((REG) = (0x0)) |
#include <stm32f7xx.h>
| #define MODIFY_REG | ( | REG, | |
| CLEARMASK, | |||
| SETMASK | |||
| ) | WRITE_REG((REG), (((READ_REG(REG)) & (~(CLEARMASK))) | (SETMASK))) |
#include <stm32f7xx.h>
#include <stm32f7xx.h>
| #define READ_BIT | ( | REG, | |
| BIT | |||
| ) | ((REG) & (BIT)) |
#include <stm32f7xx.h>
| #define READ_REG | ( | REG | ) | ((REG)) |
#include <stm32f7xx.h>
| #define SET_BIT | ( | REG, | |
| BIT | |||
| ) | ((REG) |= (BIT)) |
#include <stm32f7xx.h>
| #define WRITE_REG | ( | REG, | |
| VAL | |||
| ) | ((REG) = (VAL)) |
#include <stm32f7xx.h>