Skip to content

Commit

Permalink
soc: atmel: fix wait state value
Browse files Browse the repository at this point in the history
The datasheet specifies that 2 wait states are required at 48 MHz.

Signed-off-by: Maksim Drachov <[email protected]>
  • Loading branch information
maksimdrachov committed Sep 4, 2024
1 parent 689d1ed commit e7e27f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soc/atmel/sam0/common/soc_samc2x.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

static void flash_waitstates_init(void)
{
/* One wait state at 48 MHz. */
NVMCTRL->CTRLB.bit.RWS = NVMCTRL_CTRLB_RWS_HALF_Val;
/* Two wait state at 48 MHz. */
NVMCTRL->CTRLB.bit.RWS = NVMCTRL_CTRLB_RWS_DUAL_Val;
}

static void osc48m_init(void)
Expand Down

0 comments on commit e7e27f1

Please sign in to comment.