drivers: timer: nrf_rtc_timer: Fix int_mask initialization
Variable was not properly initialized when custom channels were disabled. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
1ca9b38946
commit
5b7fc3816d
1 changed files with 1 additions and 1 deletions
|
@ -318,8 +318,8 @@ int z_clock_driver_init(const struct device *device)
|
|||
nrf_rtc_task_trigger(RTC, NRF_RTC_TASK_CLEAR);
|
||||
nrf_rtc_task_trigger(RTC, NRF_RTC_TASK_START);
|
||||
|
||||
if (CONFIG_NRF_RTC_TIMER_USER_CHAN_COUNT) {
|
||||
int_mask = BIT_MASK(CHAN_COUNT);
|
||||
if (CONFIG_NRF_RTC_TIMER_USER_CHAN_COUNT) {
|
||||
alloc_mask = BIT_MASK(EXT_CHAN_COUNT) << 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue