mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
doc/porting-boards.md: update documentation of board_init()
This commit is contained in:
parent
fc88c4c4e5
commit
ccae474cf8
@ -62,17 +62,13 @@ somewhere else then they must be added to the include path. In
|
||||
`Makefile.include`: `INCLUDES += -I<some>/<directory>/<path>`
|
||||
|
||||
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. It is run
|
||||
before the scheduler is started, so it must not block (e.g. by performing I2C
|
||||
operations).
|
||||
least define a `board_init()` function that is called at startup.
|
||||
It is run before the scheduler is started, so it must not block (e.g. by
|
||||
performing I2C operations).
|
||||
|
||||
```c
|
||||
void board_init(void)
|
||||
{
|
||||
/* initialize the CPU core */
|
||||
cpu_init();
|
||||
|
||||
/* initialize GPIO or others... */
|
||||
...
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user