Skip to content

Commit 61d45bf

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 9ba7a7d commit 61d45bf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

samples/drivers/counter/alarm/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ tests:
2929
- nrf54l15dk/nrf54l15/cpuflpr
3030
- nrf54lm20dk/nrf54lm20a/cpuapp
3131
- nrf9160dk/nrf9160
32+
- sama7g54_ek
3233
- samd20_xpro
3334
- bl5340_dvk/nrf5340/cpuapp
3435
- gd32e103v_eval

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ struct counter_alarm_cfg alarm_cfg;
7575
#define TIMER DT_NODELABEL(rtc0)
7676
#elif defined(CONFIG_COUNTER_RENESAS_RZ_CMTW)
7777
#define TIMER DT_INST(0, renesas_rz_cmtw_counter)
78+
#elif defined(CONFIG_COUNTER_MCHP_SAM_PIT64B)
79+
#define TIMER DT_NODELABEL(pit64b1)
80+
#undef ALARM_FLAGS
81+
#define ALARM_FLAGS COUNTER_ALARM_CFG_ABSOLUTE
7882
#else
7983
#error Unable to find a counter device node in devicetree
8084
#endif

0 commit comments

Comments
 (0)