source:
rtems/c/src/aclocal/bsp-bspcleanup-options.m4
@
c32b1ef
Last change on this file since c32b1ef was 815994f, checked in by Sebastian Huber <sebastian.huber@…>, on 11/25/12 at 16:48:11 | |
---|---|
|
|
File size: 1.2 KB |
Line | |
---|---|
1 | dnl |
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: |
12 | dnl RTEMS_BSP_CLEANUP_OPTIONS([0|1], [0|1], [0|1]) |
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 |
16 | dnl argument 3 indicates the default value for BSP_PRINT_EXCEPTION_CONTEXT |
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.]) |
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.]) |
31 | ]) |
Note: See TracBrowser
for help on using the repository browser.