generic: Move simulator/irq.h to new file generic/irq.h

Move the generic irq definitions into generic/irq.h and move the
simulator irq code into main.c.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2016-06-05 15:07:57 -04:00
parent 9f8817a47e
commit 73f3b0636a
4 changed files with 46 additions and 34 deletions

11
src/generic/irq.h Normal file
View File

@@ -0,0 +1,11 @@
#ifndef __GENERIC_IRQ_H
#define __GENERIC_IRQ_H
#include <stdint.h>
void irq_disable(void);
void irq_enable(void);
uint8_t irq_save(void);
void irq_restore(uint8_t flag);
#endif // irq.h