bern-arch 0.4.0

Bern RTOS hardware specific implementation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use cortex_m_rt::exception;

// `kernel_interruot_handler` must be implemented by the kernel.
extern "C" {
    fn kernel_interrupt_handler(irqn: u16);
}

#[allow(non_snake_case)]
#[exception]
unsafe fn DefaultHandler(irqn: i16) {
    kernel_interrupt_handler(irqn as u16);
}