v2.0.0
Functions
pico_runtime_init
Runtime Infrastructure

Main runtime initialization functions required to set up the runtime environment before entering main. More...

## Functions
static void | clocks_init (void)
| Initialise the clock hardware. More...

## Detailed Description

Main runtime initialization functions required to set up the runtime environment before entering main.

The runtime initialization is registration based:

For each step of the initialization there is a 5 digit ordinal which indicates the ordering (alphabetic increasing sort of the 5 digits) of the steps.

e.g. for the step "bootrom_reset", there is:

#ifndef PICO_RUNTIME_INIT_BOOTROM_RESET
#define PICO_RUNTIME_INIT_BOOTROM_RESET "00050"
#endif

The user can override the order if they wish, by redefining PICO_RUNTIME_INIT_BOOTROM_RESET

For each step, the automatic initialization may be skipped by defining (in this case) PICO_RUNTIME_SKIP_INIT_BOOTROM_RESET = 1. The user can then choose to either omit the step completely or register their own replacement initialization.

The default method used to perform the initialization is provided, in case the user wishes to call it manually; in this case:

void runtime_init_bootrom_reset(void);

If PICO_RUNTIME_NO_INIT_BOOTOROM_RESET define is set (NO vs SKIP above), then the function is not defined, allowing the user to provide a replacement (and also avoiding cases where the default implementation won't compile due to missing dependencies)

## Function Documentation

## ◆ clocks_init()

static void clocks_init | ( | void |  | ) |
| inlinestatic

Initialise the clock hardware.

Must be called before any other clock function.