Skip to content

Commit

Permalink
drivers: timer: sam0: fix MCLK pointer and mask in init function
Browse files Browse the repository at this point in the history
Init function uses undefined cfg variable causing compilation error.

Signed-off-by: Jan Kowalewski <jkowalewski@cthings.co>
  • Loading branch information
kowalewskijan authored and kartben committed Feb 28, 2025
1 parent a7e2846 commit a9c59d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/timer/sam0_rtc_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ static int sys_clock_driver_init(void)
volatile uint32_t *mclk = ATMEL_SAM0_DT_INST_MCLK_PM_REG_ADDR_OFFSET(0);
uint32_t mclk_mask = ATMEL_SAM0_DT_INST_MCLK_PM_PERIPH_MASK(0, bit);

*cfg->mclk |= cfg->mclk_mask;
*mclk |= mclk_mask;

#ifdef MCLK
OSC32KCTRL->RTCCTRL.reg = OSC32KCTRL_RTCCTRL_RTCSEL_ULP32K;
Expand Down

0 comments on commit a9c59d6

Please sign in to comment.