1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

doc: Warn against blocking in board_init

This commit is contained in:
chrysn 2021-02-15 06:01:29 +01:00
parent 6145949f88
commit 711e9ab3b6

View File

@ -60,7 +60,9 @@ somewhere else then they must be added to the include path. In
Board initialization functions are defined in `board.c`. This file must at
least define a `board_init()` function that is called at startup. This
function initializes the `CPU` by calling`cpu_init()` among others.
function initializes the `CPU` by calling`cpu_init()` among others. It is run
before the scheduler is started, so it must not block (e.g. by performing I2C
operations).
```c
void board_init(void)