BSP and Device Driver Development Guide
The bsp_cleanup()
is the last C code invoked. Most of the BSPs
use the same shared version of bsp_cleanup()
that does nothing.
This implementation is located in the following file:
c/src/lib/libbsp/shared/bspclean.c
The bsp_cleanup()
routine can be used to return to a ROM monitor,
insure that interrupt sources are disabled, etc.. This routine is the
last place to insure a clean shutdown of the hardware. On some BSPs,
it prints a message indicating that the application completed execution
and waits for the user to press a key before resetting the board.
The PowerPC/gen83xx and PowerPC/gen5200 BSPs do this when they are built
to support the FreeScale evaluation boards. This is convenient when
using the boards in a development environment and may be disabled for
production use.
BSP and Device Driver Development Guide
Copyright © 1988-2008 OAR Corporation