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