mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 13:52:22 +08:00
806c063223
This follows the formula in the "Startup Delay" section of the datasheets, where `BOARD_XOSC_STARTUPDELAY` is the time in milliseconds, which is then multiplied by the clock fequency in kHz, divided by 256 cycles, and rounded up. This differs from `pico-sdk`, which just multiplied the value of the expression it previously used by a `PICO_XOSC_STARTUP_DELAY_MULTIPLIER`. This seems less correct, though it should be essentially the same except rounding. (`BOARD_XOSC_STARTUPDELAY_MULTIPLIER` also wouldn't fit nicely the way the `#define`s are aligned.) This sets `BOARD_XOSC_STARTUPDELAY` to `1` for all boards, so this will produce the same output and not change behavior. Signed-off-by: Ian Douglas Scott <ian@iandouglasscott.com>