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

This commit is contained in:
Gregory Nutt
2015-05-23 08:55:06 -06:00
parent 7df5a159c5
commit c718df6a26
+4 -3
View File
@@ -392,6 +392,7 @@
/* FLASH wait states /* FLASH wait states
* *
* REVISIT: These values come from the SAMD20
* Vdd Range Wait states Maximum Operating Frequency * Vdd Range Wait states Maximum Operating Frequency
* ------------- -------------- --------------------------- * ------------- -------------- ---------------------------
* 1.62V to 2.7V 0 14 MHz * 1.62V to 2.7V 0 14 MHz
@@ -402,10 +403,10 @@
* 1 48 MHz * 1 48 MHz
*/ */
#if 0 /* REVISIT -- should not be necessary */ #if 0 /* REVISIT -- Sample code is running with zero wait states */
# define BOARD_FLASH_WAITSTATES 1 # define BOARD_FLASH_WAITSTATES 0
#else #else
# define BOARD_FLASH_WAITSTATES 2 # define BOARD_FLASH_WAITSTATES 1
#endif #endif
/* SERCOM definitions ***************************************************************/ /* SERCOM definitions ***************************************************************/