irq.h 182 Bytes
Newer Older
Tomasz Wlostowski's avatar
Tomasz Wlostowski committed
1 2 3 4 5 6 7 8 9
#ifndef __IRQ_H
#define __IRQ_H

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

10 11 12
void disable_irq();
void enable_irq();

Tomasz Wlostowski's avatar
Tomasz Wlostowski committed
13
#endif