diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-11-14 09:59:10 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-11-15 15:33:12 +0100 |
commit | a052181ca2e243540342315cde990b9471331a8e (patch) | |
tree | 2e8dfd9152bfc1d37fcb05f58de9d6b0e80eb8b3 /c/src/lib/libbsp/arm/lpc32xx | |
parent | score: Add RTEMS_FATAL_SOURCE_APPLICATION (diff) | |
download | rtems-a052181ca2e243540342315cde990b9471331a8e.tar.bz2 |
score: Add RTEMS_FATAL_SOURCE_EXIT
Include <bsp/default-initial-extension.h> in all BSPs. Call
rtems_fatal() with RTEMS_FATAL_SOURCE_EXIT as source and the exit()
status code as fatal code in every bsp_cleanup(). Move previous
bsp_cleanup() code into bsp_fatal_extension().
Diffstat (limited to 'c/src/lib/libbsp/arm/lpc32xx')
-rw-r--r-- | c/src/lib/libbsp/arm/lpc32xx/include/bsp.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/arm/lpc32xx/include/bsp.h b/c/src/lib/libbsp/arm/lpc32xx/include/bsp.h index 43e0d9036a..5d9d18ac3b 100644 --- a/c/src/lib/libbsp/arm/lpc32xx/include/bsp.h +++ b/c/src/lib/libbsp/arm/lpc32xx/include/bsp.h @@ -25,20 +25,21 @@ #include <bspopts.h> +#define BSP_FEATURE_IRQ_EXTENSION + +#ifndef ASM + #include <rtems.h> #include <rtems/console.h> #include <rtems/clockdrv.h> #include <bsp/lpc32xx.h> +#include <bsp/default-initial-extension.h> #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ -#define BSP_FEATURE_IRQ_EXTENSION - -#ifndef ASM - struct rtems_bsdnet_ifconfig; /** @@ -247,10 +248,10 @@ extern uint32_t lpc32xx_magic_zero_size []; * @brief LPC support package. */ -#endif /* ASM */ - #ifdef __cplusplus } #endif /* __cplusplus */ +#endif /* ASM */ + #endif /* LIBBSP_ARM_LPC32XX_BSP_H */ |