#ifndef __IRQ_H #define __IRQ_H static inline void clear_irq() { unsigned int val = 1; asm volatile ("wcsr ip, %0"::"r"(val)); } #endif