Skip to content

Commit 5574adc

Browse files
committed
[stm32] Fix timer driver compilation for L0
1 parent 536bc3d commit 5574adc

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
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
@@ -227,7 +227,7 @@ public:
227227
}
228228

229229

230-
%% if target.family not in ["l1"]
230+
%% if target.family not in ["l0", "l1"]
231231
static inline void
232232
enableOutput()
233233
{

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ public:
3333
CaptureCompare2 = TIM_DIER_CC2DE,
3434
CaptureCompare3 = TIM_DIER_CC3DE,
3535
CaptureCompare4 = TIM_DIER_CC4DE,
36-
%% if target.family not in ["l1"]
36+
%% if target.family not in ["l0", "l1"]
3737
COM = TIM_DIER_COMDE,
38+
%% endif
39+
%% if target.family not in ["l1"]
3840
Trigger = TIM_DIER_TDE,
3941
%% endif
4042
};
@@ -47,7 +49,7 @@ public:
4749
CaptureCompare3 = TIM_DIER_CC3IE,
4850
CaptureCompare4= TIM_DIER_CC4IE,
4951
Trigger = TIM_DIER_TIE,
50-
%% if target.family not in ["l1"]
52+
%% if target.family not in ["l0", "l1"]
5153
COM = TIM_DIER_COMIE,
5254
Break = TIM_DIER_BIE,
5355
%% endif
@@ -66,7 +68,7 @@ public:
6668
Overcapture2 = TIM_SR_CC2OF,
6769
Overcapture3 = TIM_SR_CC3OF,
6870
Overcapture4 = TIM_SR_CC4OF,
69-
%% if target.family not in ["l1"]
71+
%% if target.family not in ["l0", "l1"]
7072
COM = TIM_SR_COMIF,
7173
Break = TIM_SR_BIF,
7274
%% endif
@@ -189,7 +191,7 @@ public:
189191
Enable = 1,
190192
};
191193

192-
%% if target.family not in ["l1"]
194+
%% if target.family not in ["l0", "l1"]
193195
/* Different Resolution Depending on DeadTime[7:5]: */
194196
enum class DeadTimeResolution : uint32_t
195197
{
@@ -201,7 +203,7 @@ public:
201203
};
202204
%% endif
203205

204-
%% if target.family not in ["l1"]
206+
%% if target.family not in ["l0", "l1"]
205207
enum class OffStateForRunMode : uint32_t
206208
{
207209
Disable = 0,

0 commit comments

Comments
 (0)