Skip to content

Commit 5441d08

Browse files
committed
[stm32] Fix STM32H7 32-bit timer counter size
1 parent 7207472 commit 5441d08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ public:
110110
};
111111

112112
// This type is the internal size of the counter.
113-
%% if id in [2, 5] and (target["family"] in ["f2", "f3", "f4", "f7", "l1", "l4", "g4"])
114-
// Timer 2 and 5 are the only one which have the size of 32 bit
113+
%% if id in [2, 5, 23, 24] and (target["family"] in ["f2", "f3", "f4", "f7", "l1", "l4", "g4", "h7"])
114+
// Timer 2, 5, 23 and 24 are the only ones which have a 32 bit counter
115115
using Value = uint32_t;
116116

117117
%% else

0 commit comments

Comments
 (0)