|
#ifndef _BSP_INTERRUPT_H
|
|
#define _BSP_INTERRUPT_H
|
|
|
|
#include <stdint.h>
|
|
#include "gen/Apb3IrqCtrl.h"
|
|
|
|
#define irq_t apb3irqctrl_t
|
|
|
|
inline void irq_init(irq_t* reg){
|
|
set_irq_masksReg(reg, 0);
|
|
set_irq_pendingsReg(reg, 0xff);
|
|
}
|
|
|
|
#endif /* _BSP_INTERRUPT_H */
|