59 #include "drv_trap_handler.h" 90 volatile uint16_t drv_TrapHandler_SoftTrapsInitialize(
91 bool accumulator_a_overflow_trap_enable,
92 bool accumulator_b_overflow_trap_enable,
93 bool accumulator_catastrophic_overflow_trap_enable)
95 _OVATE = accumulator_a_overflow_trap_enable;
96 _OVBTE = accumulator_b_overflow_trap_enable;
97 _COVTE = accumulator_catastrophic_overflow_trap_enable;
135 asm volatile (
"RESET\n");
159 void __attribute__((interrupt, no_auto_psv)) _ReservedTrap5(
void) {
173 void __attribute__((interrupt, no_auto_psv)) _ReservedTrap7(
void) {
187 void __attribute__((interrupt, no_auto_psv)) _HardTrapError(
void) {
201 void __attribute__((interrupt, no_auto_psv)) _SoftTrapError(
void) {
215 void __attribute__((interrupt, no_auto_psv)) _OscillatorFail(
void) {
230 void __attribute__((interrupt, no_auto_psv)) _AddressError(
void) {
243 void __attribute__((interrupt, no_auto_psv)) _StackError(
void) {
257 void __attribute__((interrupt, no_auto_psv)) _MathError(
void) {
262 #if (TRAP_DMA_SUPPORT == 1) 263 #if defined (_DMACError) 268 void __attribute__((interrupt, no_auto_psv)) _DMACError(
void) {
286 #if (__XC16_VERSION < 1030) 288 void __attribute__((interrupt, no_auto_psv)) _AltHardTrapError(
void) {
292 void __attribute__((interrupt, no_auto_psv)) _AltSoftTrapError(
void) {
296 void __attribute__((interrupt, no_auto_psv)) _AltOscillatorFail(
void) {
300 void __attribute__((interrupt, no_auto_psv)) _AltAddressError(
void) {
304 void __attribute__((interrupt, no_auto_psv)) _AltStackError(
void) {
308 void __attribute__((interrupt, no_auto_psv)) _AltMathError(
void) {
312 #if (TRAP_DMA_SUPPORT == 1) 314 void __attribute__((interrupt, no_auto_psv)) _AltDMACError(
void) {
volatile struct TRAPLOG_STATUS_s status
Status word of the Trap Logger object.
Trap ID for generic exception vector.
Trap ID for alternate exception vector.
volatile struct TRAP_LOGGER_s traplog
data structure used as buffer for trap monitoring
Trap ID for primary exception vector.
Trap ID for alternate exception vector.
Trap ID for alternate exception vector.
volatile uint16_t trap_count
Counter tracking the number of occurrences.
Trap ID for alternate exception vector.
Trap ID for primary exception vector.
volatile uint16_t reset_count
Counter of CPU RESET events (read/write)
volatile bool cpu_reset_trigger
Trap ID for alternate exception vector.
Trap ID for alternate generic soft trap exception vector.
Trap ID for alternate generic hard trap exception vector.
Trap ID for primary exception vector.
Trap ID for generic hard trap exception vector.
enum TRAP_ID_e trap_id
Trap-ID of the captured incident.
Trap ID for generic soft trap exception vector.
Trap ID for primary exception vector.
Trap ID for primary exception vector.
Trap ID for generic exception vector.