Type | Name |
---|---|
bool | bea_rcc_enable_peripheral
(enum bea_io_bank_t
io_bank, uint8_t offset) Enable a specific peripheral in the RCC subsystem. |
Type | Name |
---|---|
define | BEA_RCC_BASE_ADDR
(uint32_t *)(0x58000000) |
bea_rcc_enable_peripheral
Enable a specific peripheral in the RCC subsystem.
bool bea_rcc_enable_peripheral (
enum bea_io_bank_t io_bank,
uint8_t offset
)
Parameters:
io_bank
The I/O bank the peripheral is in (e.g., AHB1,
AHB2, etc.)offset
The offset of the peripheral in the bank’s
register. APB1 has two registers; to access the second register, pass in
the offset in that register plus 32Returns:
true Peripheral enable successful (within reason to check)
Returns:
false Peripheral enable unsuccessful
BEA_RCC_BASE_ADDR
##define BEA_RCC_BASE_ADDR (uint32_t *)(0x58000000)