Heinrich Schuchardt | db62843 | 2023-03-03 22:48:27 +0100 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+: |
| 2 | |
Heinrich Schuchardt | 1b0c316 | 2024-01-14 14:53:13 +0100 | [diff] [blame] | 3 | .. index:: |
| 4 | single: panic (command) |
| 5 | |
Heinrich Schuchardt | db62843 | 2023-03-03 22:48:27 +0100 | [diff] [blame] | 6 | panic command |
| 7 | ============= |
| 8 | |
Heinrich Schuchardt | 44b09b3 | 2024-03-16 11:09:36 +0100 | [diff] [blame] | 9 | Synopsis |
| 10 | -------- |
Heinrich Schuchardt | db62843 | 2023-03-03 22:48:27 +0100 | [diff] [blame] | 11 | |
| 12 | :: |
| 13 | |
| 14 | panic [message] |
| 15 | |
| 16 | Description |
| 17 | ----------- |
| 18 | |
| 19 | Display a message and reset the board. |
| 20 | |
| 21 | message |
| 22 | text to be displayed |
| 23 | |
| 24 | Examples |
| 25 | -------- |
| 26 | |
| 27 | :: |
| 28 | |
| 29 | => panic 'Unrecoverable error' |
| 30 | Unrecoverable error |
| 31 | resetting ... |
| 32 | |
| 33 | Configuration |
| 34 | ------------- |
| 35 | |
| 36 | If CONFIG_PANIC_HANG=y, the user has to reset the board manually. |