MNRS-BM-BSP/include/ehrenberg/devices/interrupt.h

15 lines
263 B
C
Raw Normal View History

2024-01-13 23:06:01 +01:00
#ifndef _BSP_INTERRUPT_H
#define _BSP_INTERRUPT_H
#include <stdint.h>
2024-02-22 17:09:35 +01:00
#include "gen/Apb3IrqCtrl.h"
2024-01-13 23:06:01 +01:00
2024-02-22 17:09:35 +01:00
#define irq_t apb3irqctrl_t
2024-01-13 23:06:01 +01:00
inline void irq_init(irq_t* reg){
2024-02-22 17:09:35 +01:00
set_irq_masksReg(reg, 0);
set_irq_pendingsReg(reg, 0xff);
2024-01-13 23:06:01 +01:00
}
#endif /* _BSP_INTERRUPT_H */