aboutsummaryrefslogtreecommitdiff
path: root/VexRiscvSocSoftware/libs/interrupt.h
blob: 23b7d277ae8e8981f8860f0a012fa475ca6607a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef INTERRUPTCTRL_H_
#define INTERRUPTCTRL_H_

#include <stdint.h>

typedef struct
{
  volatile uint32_t PENDINGS;
  volatile uint32_t MASKS;
} InterruptCtrl_Reg;

static void interruptCtrl_init(InterruptCtrl_Reg* reg){
	reg->MASKS = 0;
	reg->PENDINGS = 0xFFFFFFFF;
}

#endif /* INTERRUPTCTRL_H_ */