Rename _PHR_ (as peripheral) to specific bus (AHB, APB, etc.).
This commit is contained in:
16
mcu/stm32l.h
16
mcu/stm32l.h
@@ -59,15 +59,15 @@ struct RCC {
|
||||
#define RCC_BASE (AHB1PERIPH_BASE + 0x1000)
|
||||
static struct RCC *const RCC = (struct RCC *)RCC_BASE;
|
||||
|
||||
#define RCC_PHR_GPIOA 0x00000001
|
||||
#define RCC_PHR_GPIOB 0x00000002
|
||||
#define RCC_PHR_GPIOC 0x00000004
|
||||
#define RCC_PHR_GPIOD 0x00000008
|
||||
#define RCC_PHR_GPIOE 0x00000010
|
||||
#define RCC_PHR_GPIOH 0x00000080
|
||||
#define RCC_AHB2_GPIOA 0x00000001
|
||||
#define RCC_AHB2_GPIOB 0x00000002
|
||||
#define RCC_AHB2_GPIOC 0x00000004
|
||||
#define RCC_AHB2_GPIOD 0x00000008
|
||||
#define RCC_AHB2_GPIOE 0x00000010
|
||||
#define RCC_AHB2_GPIOH 0x00000080
|
||||
|
||||
#define RCC_PHR_USB (1 << 26)
|
||||
#define RCC_PHR_CRS (1 << 24)
|
||||
#define RCC_APB1_1_USB (1 << 26)
|
||||
#define RCC_APB1_1_CRS (1 << 24)
|
||||
|
||||
|
||||
struct PWR
|
||||
|
||||
Reference in New Issue
Block a user