Polprzewodnikowy ab9bd74e91 backup
2022-05-15 15:47:12 +02:00

18 lines
399 B
C

#ifndef EXCEPTION_H__
#define EXCEPTION_H__
#define TRIGGER_CODE_ERROR (0)
#define EXCEPTION_TRIGGER(code) { asm volatile ("syscall %[c]\n" :: [c] "i" (code)); }
void exception_install (void);
void exception_enable_interrupts (void);
void exception_disable_interrupts (void);
void exception_enable_watchdog (void);
void exception_disable_watchdog (void);
#endif