STM32 Blue Pill Drivers
Drivers that could be used to interface and interact with STM32F103C8T6 Microcontroller
|
These macro-functions help in mapping and accessing the hardware registers. More...
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... | |
These macro-functions help in mapping and accessing the hardware registers.
#define REGISTER_ADDRESS | ( | ADDRESS, | |
OFFSET | |||
) | ((ADDRESS) + (OFFSET)) |
#include <LIB/LSTD_HW_REGS.h>
Placeholder for declaring a register address.
[in] | ADDRESS | The address of the register |
[in] | OFFSET | The offset of the register |
#include <LIB/LSTD_HW_REGS.h>
Map to a certain register by its address in the memory.
[in] | ADDRESS | The address of the register |
[in] | REG_TYPE | The type of the register |
#include <LIB/LSTD_HW_REGS.h>
Map to a certain register by its 8-bit address in the memory (used for 8-bit registers)
[in] | ADDRESS | The address of the register |
#include <LIB/LSTD_HW_REGS.h>
Map to a certain register by its 16-bit address in the memory (used for 16-bit registers)
[in] | ADDRESS | The address of the register |
#include <LIB/LSTD_HW_REGS.h>
Map to a certain register by its 32-bit address in the memory (used for 32-bit registers)
[in] | ADDRESS | The address of the register |