Skip to content

Commit a9c59d6

Browse files
kowalewskijankartben
authored andcommitted
drivers: timer: sam0: fix MCLK pointer and mask in init function
Init function uses undefined cfg variable causing compilation error. Signed-off-by: Jan Kowalewski <[email protected]>
1 parent a7e2846 commit a9c59d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/timer/sam0_rtc_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ static int sys_clock_driver_init(void)
252252
volatile uint32_t *mclk = ATMEL_SAM0_DT_INST_MCLK_PM_REG_ADDR_OFFSET(0);
253253
uint32_t mclk_mask = ATMEL_SAM0_DT_INST_MCLK_PM_PERIPH_MASK(0, bit);
254254

255-
*cfg->mclk |= cfg->mclk_mask;
255+
*mclk |= mclk_mask;
256256

257257
#ifdef MCLK
258258
OSC32KCTRL->RTCCTRL.reg = OSC32KCTRL_RTCCTRL_RTCSEL_ULP32K;

0 commit comments

Comments
 (0)