adds support for new mnrs peripherals

This commit is contained in:
2024-02-22 17:09:35 +01:00
parent 10b8f3173d
commit 98760929c6
12 changed files with 540 additions and 129 deletions

View File

@@ -2,15 +2,13 @@
#define _BSP_INTERRUPT_H
#include <stdint.h>
#include "gen/Apb3IrqCtrl.h"
typedef struct __attribute((__packed__)) {
volatile uint32_t ip;
volatile uint32_t ie;
} irq_t;
#define irq_t apb3irqctrl_t
inline void irq_init(irq_t* reg){
reg->ie = 0;
reg->ip = 0xFFFFFFFF;
set_irq_masksReg(reg, 0);
set_irq_pendingsReg(reg, 0xff);
}
#endif /* _BSP_INTERRUPT_H */