pub fn init() {
    unsafe {
        // Enable interrupts in general
        mstatus::set_mie();
        // Set the Machine-Software bit in MIE
        mie::set_msoft();
        // Set the Machine-External bit in MIE
        mie::set_mext();
    }

    uart_init(115_200);
    uart_enable_intr(true);
}
/** Initialize interrupts and buffered UART handling */
Initialize interrupts and buffered UART handling
Initialize interrupts and buffered UART handling
pub fn init() {
    unsafe {
        // Enable interrupts in general
        mstatus::set_mie();
        // Set the Machine-Software bit in MIE
        mie::set_msoft();
        // Set the Machine-External bit in MIE
        mie::set_mext();
    }
    uart_init(115_200);
    uart_enable_intr(true);
}
pub fn init ( ) { unsafe { // Enable interrupts in general mstatus :: set_mie ( ) ; // Set the Machine-Software bit in MIE mie :: set_msoft ( ) ; // Set the Machine-External bit in MIE mie :: set_mext ( ) ; } uart_init ( 115_200 ) ; uart_enable_intr ( true ) ; }
Initialize interrupts and buffered UART handling
Initialize interrupts and buffered UART handling