allow override of XOSC_MHZ (#644)

* And increased assertion limit to 50 as 15 was the limit for the oscillator but not for XIN
This commit is contained in:
Graham Sanderson
2021-11-01 08:11:21 -05:00
committed by GitHub
parent d7358e4ed8
commit da476610e2
2 changed files with 5 additions and 2 deletions

View File

@ -13,8 +13,8 @@
#include "hardware/regs/xosc.h"
#include "hardware/xosc.h"
#if XOSC_MHZ < 1 || XOSC_MHZ > 15
#error XOSC_MHZ must be in the range 1-15
#if XOSC_MHZ < 1 || XOSC_MHZ > 50
#error XOSC_MHZ must be in the range 1-50
#endif
#define STARTUP_DELAY (((((XOSC_MHZ * MHZ) / 1000) + 128) / 256) * PICO_XOSC_STARTUP_DELAY_MULTIPLIER)