Skip to content

Commit daff86a

Browse files
samples: drivers: counter: alarm: add support for pit64b1
Add support for pit64b1 counter device. Signed-off-by: CHEN Xing <[email protected]>
1 parent ff8d0ef commit daff86a

File tree

1 file changed

+4
-0
lines changed
  • samples/drivers/counter/alarm/src

1 file changed

+4
-0
lines changed

samples/drivers/counter/alarm/src/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ struct counter_alarm_cfg alarm_cfg;
7373
#define TIMER DT_INST(0, renesas_rz_gtm_counter)
7474
#elif defined(CONFIG_COUNTER_CC23X0_RTC)
7575
#define TIMER DT_NODELABEL(rtc0)
76+
#elif defined(CONFIG_COUNTER_MCHP_SAM_PIT64B)
77+
#define TIMER DT_NODELABEL(pit64b1)
78+
#undef ALARM_FLAGS
79+
#define ALARM_FLAGS COUNTER_ALARM_CFG_ABSOLUTE
7680
#else
7781
#error Unable to find a counter device node in devicetree
7882
#endif

0 commit comments

Comments
 (0)