Miosix  2.0alpha1
bsp.h File Reference
#include "interfaces-impl/bsp_impl.h"
Include dependency graph for bsp.h:

Namespaces

 miosix
 

Functions

void miosix::shutdown ()
 
void miosix::reboot ()
 

Detailed Description

This file contains architecture specific board support package. It must at least provide these four functions:

IRQbspInit(), to initialize the board to a known state early in the boot process (before the kernel is started, and when interrupts are disabled)

bspInit2(), to perform the remaining part of the initialization, once the kernel is started

shutdown(), for system shutdown. This function is called in case main() returns, and is available to be called by user code.

reboot(), a function that can be called to reboot the system under normal (non error) conditions. It should sync and unmount the filesystem, and perform a reboot. This function is available for user code.

Other than this, the board support package might contain other functions, classes, macros etc. to support peripherals and or board hardware.