adds ehrenberg platform
This commit is contained in:
16
include/ehrenberg/devices/interrupt.h
Normal file
16
include/ehrenberg/devices/interrupt.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef _BSP_INTERRUPT_H
|
||||
#define _BSP_INTERRUPT_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct __attribute((__packed__)) {
|
||||
volatile uint32_t ip;
|
||||
volatile uint32_t ie;
|
||||
} irq_t;
|
||||
|
||||
inline void irq_init(irq_t* reg){
|
||||
reg->ie = 0;
|
||||
reg->ip = 0xFFFFFFFF;
|
||||
}
|
||||
|
||||
#endif /* _BSP_INTERRUPT_H */
|
Reference in New Issue
Block a user