59 #include "drv_trap_handler.h"
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)
312 #if (TRAP_DMA_SUPPORT == 1)
314 void __attribute__((interrupt, no_auto_psv)) _AltDMACError(
void) {
void DefaultTrapHandler(enum TRAP_ID_e trap_id)
Centralized trap handler routine.
volatile uint16_t drv_TrapHandler_SoftTrapsInitialize(bool accumulator_a_overflow_trap_enable, bool accumulator_b_overflow_trap_enable, bool accumulator_catastrophic_overflow_trap_enable)
Configures the software-configurable traps.
volatile struct TRAP_LOGGER_s traplog
data structure used as buffer for trap monitoring
TRAP_ID_e
defining trap-ID for primary and secondary vectors
void _AltHardTrapError(void)
void _AltAddressError(void)
void _AltSoftTrapError(void)
void _AltStackError(void)
void _AltOscillatorFail(void)
struct TRAPLOG_STATUS_s::@123::@125 bits
Global data structure for trap event capturing.
volatile struct TRAPLOG_STATUS_s status
Status word of the Trap Logger object.
enum TRAP_ID_e trap_id
Trap-ID of the captured incident.
volatile uint16_t trap_count
Counter tracking the number of occurrences.
volatile uint16_t reset_count
Counter of CPU RESET events (read/write)