Skip to content

Commit 8f5daca

Browse files
MCHP-MPU-Solutions-SHAcfriedt
authored andcommitted
drivers: counter: sam_tc: Big fix for alarm 1
Issue: the alarm 1 do not generate interrupt There are three compare registers in a SAM TC channel: RA --> alarm 0 RB --> alarm 1 RC --> top_value By default the RB/TOIB was configured as an input and no longer generates interrupt. Set the direction of TIOB to output for alarm 1 interrupt. Fixes #85018 Signed-off-by: CHEN Xing <[email protected]>
1 parent 2f52a1b commit 8f5daca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/counter/counter_sam_tc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ static DEVICE_API(counter, counter_sam_driver_api) = {
356356

357357
#define COUNTER_SAM_TC_CMR(n) \
358358
(TC_CMR_TCCLKS(DT_INST_PROP_OR(n, clk, 0)) \
359+
| TC_CMR_WAVEFORM_EEVT_XC0 \
359360
| TC_CMR_WAVEFORM_WAVSEL_UP_RC \
360361
| TC_CMR_WAVE)
361362

0 commit comments

Comments
 (0)