doc: Warn against blocking in board_init
This commit is contained in:
parent
6145949f88
commit
711e9ab3b6
@ -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
|
Board initialization functions are defined in `board.c`. This file must at
|
||||||
least define a `board_init()` function that is called at startup. This
|
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
|
```c
|
||||||
void board_init(void)
|
void board_init(void)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user