source:
rtems/c/src/aclocal/bsp-bspcleanup-options.m4
@
815994f
Last change on this file since 815994f was 815994f, checked in by Sebastian Huber <sebastian.huber@…>, on 11/25/12 at 16:48:11 | |
---|---|
|
|
File size: 1.2 KB |
Rev | Line | |
---|---|---|
[33a105fb] | 1 | dnl |
[8785e906] | 2 | dnl BSP_CLEANUP_OPTIONS - some autoconf voodoo to provide each BSPs' |
3 | dnl configure script with the standard options supported by the shared | |
4 | dnl implementation of bsp_cleanup(). | |
5 | dnl | |
6 | dnl - Can optionally dirty memory at boot time. | |
7 | dnl | |
8 | ||
9 | dnl To be used in bsp-configure scripts | |
10 | ||
11 | dnl USAGE: | |
[815994f] | 12 | dnl RTEMS_BSP_CLEANUP_OPTIONS([0|1], [0|1], [0|1]) |
[8785e906] | 13 | dnl WHERE: |
14 | dnl argument 1 indicates the default value for BSP_PRESS_KEY_FOR_RESET | |
15 | dnl argument 2 indicates the default value for BSP_RESET_BOARD_AT_EXIT | |
[815994f] | 16 | dnl argument 3 indicates the default value for BSP_PRINT_EXCEPTION_CONTEXT |
[8785e906] | 17 | |
18 | AC_DEFUN([RTEMS_BSP_CLEANUP_OPTIONS],[ | |
19 | RTEMS_BSPOPTS_SET([BSP_PRESS_KEY_FOR_RESET],[*],[$1]) | |
20 | RTEMS_BSPOPTS_HELP([BSP_PRESS_KEY_FOR_RESET], | |
21 | [If defined, print a message and wait until pressed before resetting | |
22 | board when application exits.]) | |
23 | ||
24 | RTEMS_BSPOPTS_SET([BSP_RESET_BOARD_AT_EXIT],[*],[$2]) | |
25 | RTEMS_BSPOPTS_HELP([BSP_RESET_BOARD_AT_EXIT], | |
26 | [If defined, reset the board when the application exits.]) | |
[815994f] | 27 | |
28 | RTEMS_BSPOPTS_SET([BSP_PRINT_EXCEPTION_CONTEXT],[*],[$3]) | |
29 | RTEMS_BSPOPTS_HELP([BSP_PRINT_EXCEPTION_CONTEXT], | |
30 | [If defined, prints the exception context when an unexpected exception occurs.]) | |
[8785e906] | 31 | ]) |
Note: See TracBrowser
for help on using the repository browser.