STM32 Blue Pill Drivers
Drivers that could be used to interface and interact with STM32F103C8T6 Microcontroller
Loading...
Searching...
No Matches
LSTD_HW_REGS.h File Reference

This file contains the hardware registers macro-functions for memory addresses mapping and accessing. More...

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

Macros

#define REGISTER_ADDRESS(ADDRESS, OFFSET)   ((ADDRESS) + (OFFSET))
 Placeholder for declaring a register address. More...
 
#define REGISTER(REG_TYPE, ADDRESS)   (*(VOLATILE P2VAR(REG_TYPE))(ADDRESS))
 Map to a certain register by its address in the memory. More...
 
#define REGISTER_U8(ADDRESS)   REGISTER(t_u8, ADDRESS)
 Map to a certain register by its 8-bit address in the memory (used for 8-bit registers) More...
 
#define REGISTER_U16(ADDRESS)   REGISTER(t_u16, ADDRESS)
 Map to a certain register by its 16-bit address in the memory (used for 16-bit registers) More...
 
#define REGISTER_U32(ADDRESS)   REGISTER(t_u32, ADDRESS)
 Map to a certain register by its 32-bit address in the memory (used for 32-bit registers) More...
 

Detailed Description

This file contains the hardware registers macro-functions for memory addresses mapping and accessing.

Author
Mohamed Alaa
Version
1.0.0
Date
2023-06-18