@@ -18,6 +18,9 @@ namespace klib::stm32f469::io::periph {
1818 // peripheral id (e.g gpio0, gpio1)
1919 constexpr static uint32_t id = 0 ;
2020
21+ // peripheral clock bit position
22+ constexpr static uint32_t clock_id = 0 ;
23+
2124 // port to the gpio hardware
2225 static inline GPIOA_Type *const port = GPIOA;
2326 };
@@ -26,6 +29,9 @@ namespace klib::stm32f469::io::periph {
2629 // peripheral id (e.g gpio0, gpio1)
2730 constexpr static uint32_t id = 1 ;
2831
32+ // peripheral clock bit position
33+ constexpr static uint32_t clock_id = 1 ;
34+
2935 // port to the gpio hardware
3036 static inline GPIOB_Type *const port = GPIOB;
3137 };
@@ -34,6 +40,9 @@ namespace klib::stm32f469::io::periph {
3440 // peripheral id (e.g gpio0, gpio1)
3541 constexpr static uint32_t id = 2 ;
3642
43+ // peripheral clock bit position
44+ constexpr static uint32_t clock_id = 2 ;
45+
3746 // port to the gpio hardware
3847 static inline GPIOK_Type *const port = GPIOC;
3948 };
@@ -42,6 +51,9 @@ namespace klib::stm32f469::io::periph {
4251 // peripheral id (e.g gpio0, gpio1)
4352 constexpr static uint32_t id = 3 ;
4453
54+ // peripheral clock bit position
55+ constexpr static uint32_t clock_id = 3 ;
56+
4557 // port to the gpio hardware
4658 static inline GPIOK_Type *const port = GPIOD;
4759 };
@@ -50,6 +62,9 @@ namespace klib::stm32f469::io::periph {
5062 // peripheral id (e.g gpio0, gpio1)
5163 constexpr static uint32_t id = 4 ;
5264
65+ // peripheral clock bit position
66+ constexpr static uint32_t clock_id = 4 ;
67+
5368 // port to the gpio hardware
5469 static inline GPIOK_Type *const port = GPIOE;
5570 };
@@ -58,6 +73,9 @@ namespace klib::stm32f469::io::periph {
5873 // peripheral id (e.g gpio0, gpio1)
5974 constexpr static uint32_t id = 5 ;
6075
76+ // peripheral clock bit position
77+ constexpr static uint32_t clock_id = 5 ;
78+
6179 // port to the gpio hardware
6280 static inline GPIOK_Type *const port = GPIOF;
6381 };
@@ -66,6 +84,9 @@ namespace klib::stm32f469::io::periph {
6684 // peripheral id (e.g gpio0, gpio1)
6785 constexpr static uint32_t id = 6 ;
6886
87+ // peripheral clock bit position
88+ constexpr static uint32_t clock_id = 6 ;
89+
6990 // port to the gpio hardware
7091 static inline GPIOK_Type *const port = GPIOG;
7192 };
@@ -74,6 +95,9 @@ namespace klib::stm32f469::io::periph {
7495 // peripheral id (e.g gpio0, gpio1)
7596 constexpr static uint32_t id = 7 ;
7697
98+ // peripheral clock bit position
99+ constexpr static uint32_t clock_id = 7 ;
100+
77101 // port to the gpio hardware
78102 static inline GPIOK_Type *const port = GPIOH;
79103 };
@@ -82,6 +106,9 @@ namespace klib::stm32f469::io::periph {
82106 // peripheral id (e.g gpio0, gpio1)
83107 constexpr static uint32_t id = 8 ;
84108
109+ // peripheral clock bit position
110+ constexpr static uint32_t clock_id = 8 ;
111+
85112 // port to the gpio hardware
86113 static inline GPIOK_Type *const port = GPIOI;
87114 };
@@ -90,6 +117,9 @@ namespace klib::stm32f469::io::periph {
90117 // peripheral id (e.g gpio0, gpio1)
91118 constexpr static uint32_t id = 9 ;
92119
120+ // peripheral clock bit position
121+ constexpr static uint32_t clock_id = 9 ;
122+
93123 // port to the gpio hardware
94124 static inline GPIOK_Type *const port = GPIOJ;
95125 };
@@ -98,6 +128,9 @@ namespace klib::stm32f469::io::periph {
98128 // peripheral id (e.g gpio0, gpio1)
99129 constexpr static uint32_t id = 10 ;
100130
131+ // peripheral clock bit position
132+ constexpr static uint32_t clock_id = 10 ;
133+
101134 // port to the gpio hardware
102135 static inline GPIOK_Type *const port = GPIOK;
103136 };
0 commit comments