summaryrefslogtreecommitdiffstats
path: root/lib/cm4.h
blob: 7c1c7740cce52508e4f9fd9132dee9496cef9eb2 (plain)
1
2
3
4
5
6
7
8
9
10
#ifndef LIB_CM4_H
#define LIB_CM4_H

#define CLRPEND(n) REG_32(0xE000E280 + 4 * (n))
#define ISR_CLRPEND(i) CLRPEND((i) / 32) = BV((i) % 32);

#define SETENA(n) REG_32(0xE000E100 + 4 * (n))
#define ISR_SETENA(i) SETENA((i) / 32) = BV((i) % 32);

#endif /* LIB_CM4_H */