2016-06-05 22:07:57 +03:00
|
|
|
#ifndef __GENERIC_IRQ_H
|
|
|
|
#define __GENERIC_IRQ_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2016-06-09 04:13:53 +03:00
|
|
|
typedef unsigned long irqstatus_t;
|
|
|
|
|
2016-06-05 22:07:57 +03:00
|
|
|
void irq_disable(void);
|
|
|
|
void irq_enable(void);
|
2016-06-09 04:13:53 +03:00
|
|
|
irqstatus_t irq_save(void);
|
|
|
|
void irq_restore(irqstatus_t flag);
|
2017-07-13 05:16:16 +03:00
|
|
|
void irq_wait(void);
|
2017-05-07 07:09:11 +03:00
|
|
|
void irq_poll(void);
|
2016-06-05 22:07:57 +03:00
|
|
|
|
|
|
|
#endif // irq.h
|