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:
@ -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)
|
||||
|
Reference in New Issue
Block a user