aboutsummaryrefslogtreecommitdiff
path: root/interrupts.c
blob: 3dc3d6f8de674e53fdb5b6ac6e6953d49bf73012 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "uart.h"
/**
    @brief The undefined instruction interrupt handler

    If an undefined instruction is encountered, the CPU will start
    executing this function. Just trap here as a debug solution.
*/
void __attribute__((interrupt("UNDEF"))) undefined_instruction_vector(void)
{
    uart_puts("Undefined instruction occured");
    while( 1 )
    {
        /* Do Nothing! */
    }
}