RTC with zephyr

Hello

I use the sample project for alarm (zephyr/samples/drivers/counter/alarm). I was able to build the sample and run it on NRF52DK (PCA10040) with NRF52832.

I tried to extend the sample with additional compare alarms, but with RTC0 are only 2 compare channels possible and with RTC2 only 3 compare channels possible.

Output of  counter_get_num_of_channels(counter_dev) ;  is 2 for RTC0 and 3 for RTC2. My expectation was to get 3 possible channels for RTC0 and 4 channels for RTC2 as defined in NRF52832.dtsi.

Is one channel retained for zephyr internals?

best regard Martin

Related