From c718df6a260cc38fcafed0ea28e058d67d3d96b7 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 23 May 2015 08:55:06 -0600 Subject: [PATCH] SAMD/L: Change ordering of some initialization steps to match Atmel sample code. Add Errate 13134 support. SAML wait states changed to 1. Sample code is using 0 --- configs/saml21-xplained/include/board.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configs/saml21-xplained/include/board.h b/configs/saml21-xplained/include/board.h index 2b30631807a..7b3c104afd7 100644 --- a/configs/saml21-xplained/include/board.h +++ b/configs/saml21-xplained/include/board.h @@ -392,6 +392,7 @@ /* FLASH wait states * + * REVISIT: These values come from the SAMD20 * Vdd Range Wait states Maximum Operating Frequency * ------------- -------------- --------------------------- * 1.62V to 2.7V 0 14 MHz @@ -402,10 +403,10 @@ * 1 48 MHz */ -#if 0 /* REVISIT -- should not be necessary */ -# define BOARD_FLASH_WAITSTATES 1 +#if 0 /* REVISIT -- Sample code is running with zero wait states */ +# define BOARD_FLASH_WAITSTATES 0 #else -# define BOARD_FLASH_WAITSTATES 2 +# define BOARD_FLASH_WAITSTATES 1 #endif /* SERCOM definitions ***************************************************************/