Skip to content

Commit ee1f536

Browse files
committed
HardwareTimer: NonReg: Fix TIM8 Pin definition
Due to changes in PeripheralPins.c of nucleo_l476rg, it is necessary to adapt the sketch to match the right pin definition Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
1 parent 3667312 commit ee1f536

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/NonReg/HardwareTimer/HardwareTimer_OutputInput_test/HardwareTimer_OutputInput_test.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949
#define Output2_channel 2
5050

5151
// TIM input
52-
#define TIM8_CH1_PIN PC6 // CN10 pin 4 Use also channel2 for freq/duty measurement
52+
#define TIM8_CH1_PIN PC_6_ALT1 // CN10 pin 4 Use also channel2 for freq/duty measurement
5353
#define Freq1_channelRising 1
5454
#define Freq1_channelFalling 2
5555

56-
#define TIM8_CH3_PIN PC8 // CN10 pin 2 Use also channel4 for freq/duty measurement
56+
#define TIM8_CH3_PIN PC_8_ALT1 // CN10 pin 2 Use also channel4 for freq/duty measurement
5757
#define Freq2_channelRising 3
5858
#define Freq2_channelFalling 4
5959

0 commit comments

Comments
 (0)