Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf13ec1e

Browse files
committed
Allow overriding timer definitions
Allow TIMER_TONE, TIMER_SERVO and TIMER_SERIAL to be overridden using built_opt.h or similar.
1 parent28dadd2 commitf13ec1e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎variants/RUMBA32_F446VE/variant.h‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,17 @@ extern "C" {
133133

134134
// Timer Definitions
135135
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
136+
#ifndefTIMER_TONE
136137
#defineTIMER_TONE TIM6
138+
#endif
139+
140+
#ifndefTIMER_SERVO
137141
#defineTIMER_SERVO TIM7
142+
#endif
143+
144+
#ifndefTIMER_SERIAL
138145
#defineTIMER_SERIAL TIM9
146+
#endif
139147

140148
// UART Definitions
141149
#defineSERIAL_UART_INSTANCE 1 // Connected to EXP3 header

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp