atmel-samd: Stop calibrating the crystal for Gemma and Trinket. We need the space for other code.
This commit is contained in:
parent
b7ded4c934
commit
c81052a256
@ -37,4 +37,4 @@
|
|||||||
|
|
||||||
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000)
|
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000)
|
||||||
|
|
||||||
#define CRYSTALLESS 1
|
#define CALIBRATE_CRYSTALLESS 1
|
||||||
|
@ -14,5 +14,3 @@
|
|||||||
#include "internal_flash.h"
|
#include "internal_flash.h"
|
||||||
|
|
||||||
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - 0x010000)
|
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - 0x010000)
|
||||||
|
|
||||||
#define CRYSTALLESS 1
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
LD_FILE = boards/samd21x18-bootloader-crystalless.ld
|
LD_FILE = boards/samd21x18-bootloader.ld
|
||||||
USB_VID = 0x239A
|
USB_VID = 0x239A
|
||||||
USB_PID = 0x8015
|
USB_PID = 0x8015
|
||||||
|
|
||||||
|
@ -14,5 +14,3 @@
|
|||||||
#include "internal_flash.h"
|
#include "internal_flash.h"
|
||||||
|
|
||||||
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - 0x010000)
|
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - 0x010000)
|
||||||
|
|
||||||
#define CRYSTALLESS 1
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
LD_FILE = boards/samd21x18-bootloader-crystalless.ld
|
LD_FILE = boards/samd21x18-bootloader.ld
|
||||||
USB_VID = 0x239A
|
USB_VID = 0x239A
|
||||||
USB_PID = 0x8015
|
USB_PID = 0x8015
|
||||||
|
|
||||||
|
@ -183,7 +183,7 @@ void reset_samd21(void) {
|
|||||||
|
|
||||||
pwmout_reset();
|
pwmout_reset();
|
||||||
|
|
||||||
#ifdef CRYSTALLESS
|
#ifdef CALIBRATE_CRYSTALLESS
|
||||||
// If we are on USB lets double check our fine calibration for the clock and
|
// If we are on USB lets double check our fine calibration for the clock and
|
||||||
// save the new value if its different enough.
|
// save the new value if its different enough.
|
||||||
if (mp_msc_enabled) {
|
if (mp_msc_enabled) {
|
||||||
@ -463,7 +463,7 @@ void samd21_init(void) {
|
|||||||
|
|
||||||
|
|
||||||
uint16_t dfll_fine_calibration = 0x1ff;
|
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
|
// 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
|
// the optional file system. The first 16 bytes are the identifier for the
|
||||||
// section.
|
// section.
|
||||||
|
Loading…
Reference in New Issue
Block a user