Add flash wait state optimisation from @tomtor

This commit is contained in:
Roger Clark 2018-04-13 14:52:55 +10:00
parent 44f617bc9c
commit 7ef6e71a78
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ typedef struct flash_reg_map {
* Series-specific configuration values.
*/
#define FLASH_SAFE_WAIT_STATES FLASH_WAIT_STATE_2
#define FLASH_SAFE_WAIT_STATES (F_CPU > 48000000 ? FLASH_WAIT_STATE_2 : F_CPU > 24000000 ? FLASH_WAIT_STATE_1 : FLASH_WAIT_STATE_0)
/* Flash memory features available via ACR */
enum {