Skip to content
Snippets Groups Projects
irq.h 142 B
Newer Older
Tomasz Wlostowski's avatar
Tomasz Wlostowski committed
#ifndef __IRQ_H
#define __IRQ_H

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

#endif