Skip to content

Commit 2aedbd3

Browse files
committed
Fixed TIM2 and TIM5 generated as 32 bit timer on stm32g4
1 parent b5e4913 commit 2aedbd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modm/platform/timer/stm32/general_purpose.hpp.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public:
108108
};
109109

110110
// This type is the internal size of the counter.
111-
%% if id in [2, 5] and (target["family"] in ["f2", "f3", "f4", "f7", "l1", "l4"])
111+
%% if id in [2, 5] and (target["family"] in ["f2", "f3", "f4", "f7", "l1", "l4", "g4"])
112112
// Timer 2 and 5 are the only one which have the size of 32 bit
113113
typedef uint32_t Value;
114114

0 commit comments

Comments
 (0)