|  | Dual Active Bridge Development Board (Part-No. ) |
Content |  |  |  |  |  |

Loading...
Searching...
No Matches
traps.h
1
17/*
18© [2024] Microchip Technology Inc. and its subsidiaries.
19
20 Subject to your compliance with these terms, you may use Microchip
21 software and any derivatives exclusively with Microchip products.
22 You are responsible for complying with 3rd party license terms
23 applicable to your use of 3rd party software (including open source
24 software) that may accompany Microchip software. SOFTWARE IS ?AS IS.?
25 NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS
26 SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,
27 MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
28 WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
29 INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY
30 KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF
31 MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE
32 FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP?S
33 TOTAL LIABILITY ON ALL CLAIMS RELATED TO THE SOFTWARE WILL NOT
34 EXCEED AMOUNT OF FEES, IF ANY, YOU PAID DIRECTLY TO MICROCHIP FOR
35 THIS SOFTWARE.
36*/
37
38#ifndef TRAPS_H
39#define TRAPS_H
40
41// Section: Included Files
42#include <stdint.h>
43
44// Section: Data Type Definitions
45
51enum TRAPS_ERROR_CODE
52{
53// Traps
54 TRAPS_OSC_FAIL = 0,
55 TRAPS_STACK_ERR = 1,
56 TRAPS_ADDRESS_ERR = 2,
57 TRAPS_MATH_ERR = 3,
58 TRAPS_HARD_ERR = 7,
59 TRAPS_DAE_ERR = 9,
60 TRAPS_DOOVR_ERR = 10,
61 TRAPS_APLL_ERR = 11,
62 TRAPS_NVM_ERR = 12,
63 TRAPS_CAN_ERR = 13,
64};
65
66// Section: Driver Interface Function
67
76 void TRAPS_halt_on_error(uint16_t code);
77
78#endif
79
TRAPS_halt_on_error
void TRAPS_halt_on_error(uint16_t code)
Stores the trap error code and waits forever. This is a weak attribute function. The user can overrid...