cpu/lpc2387: add definition of RSIR bits
Add the bits of the Reset Source Identification Register
This commit is contained in:
parent
6a4259e48a
commit
15fcbe837a
4
cpu/lpc2387/include/vendor/lpc23xx.h
vendored
4
cpu/lpc2387/include/vendor/lpc23xx.h
vendored
@ -424,6 +424,10 @@ Reset, and Code Security/Debugging */
|
|||||||
|
|
||||||
/* Reset, reset source identification */
|
/* Reset, reset source identification */
|
||||||
#define RSIR (*(volatile unsigned long *)(SCB_BASE_ADDR + 0x180))
|
#define RSIR (*(volatile unsigned long *)(SCB_BASE_ADDR + 0x180))
|
||||||
|
#define RSIR_POR (BIT0)
|
||||||
|
#define RSIR_EXTR (BIT1)
|
||||||
|
#define RSIR_WDTR (BIT2)
|
||||||
|
#define RSIR_BODR (BIT3)
|
||||||
|
|
||||||
/* RSID, code security protection */
|
/* RSID, code security protection */
|
||||||
#define CSPR (*(volatile unsigned long *)(SCB_BASE_ADDR + 0x184))
|
#define CSPR (*(volatile unsigned long *)(SCB_BASE_ADDR + 0x184))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user