atmel-samd: Stop calibrating the crystal for Gemma and Trinket. We need the space for other code.

This commit is contained in:
Scott Shawcroft 2017-02-19 14:11:24 +01:00
parent b7ded4c934
commit c81052a256
6 changed files with 5 additions and 9 deletions

View File

@ -37,4 +37,4 @@
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000)
#define CRYSTALLESS 1
#define CALIBRATE_CRYSTALLESS 1

View File

@ -14,5 +14,3 @@
#include "internal_flash.h"
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - 0x010000)
#define CRYSTALLESS 1

View File

@ -1,4 +1,4 @@
LD_FILE = boards/samd21x18-bootloader-crystalless.ld
LD_FILE = boards/samd21x18-bootloader.ld
USB_VID = 0x239A
USB_PID = 0x8015

View File

@ -14,5 +14,3 @@
#include "internal_flash.h"
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - 0x010000)
#define CRYSTALLESS 1

View File

@ -1,4 +1,4 @@
LD_FILE = boards/samd21x18-bootloader-crystalless.ld
LD_FILE = boards/samd21x18-bootloader.ld
USB_VID = 0x239A
USB_PID = 0x8015

View File

@ -183,7 +183,7 @@ void reset_samd21(void) {
pwmout_reset();
#ifdef CRYSTALLESS
#ifdef CALIBRATE_CRYSTALLESS
// If we are on USB lets double check our fine calibration for the clock and
// save the new value if its different enough.
if (mp_msc_enabled) {
@ -463,7 +463,7 @@ void samd21_init(void) {
uint16_t dfll_fine_calibration = 0x1ff;
#ifdef CRYSTALLESS
#ifdef CALIBRATE_CRYSTALLESS
// This is stored in an NVM page after the text and data storage but before
// the optional file system. The first 16 bytes are the identifier for the
// section.