From 15fcbe837a9f4e8fbf8b66fa1df9f8b2981fdd37 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Sat, 9 Nov 2019 23:51:43 +0100 Subject: [PATCH] cpu/lpc2387: add definition of RSIR bits Add the bits of the Reset Source Identification Register --- cpu/lpc2387/include/vendor/lpc23xx.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpu/lpc2387/include/vendor/lpc23xx.h b/cpu/lpc2387/include/vendor/lpc23xx.h index cf54704277..63f2e8c7d9 100644 --- a/cpu/lpc2387/include/vendor/lpc23xx.h +++ b/cpu/lpc2387/include/vendor/lpc23xx.h @@ -424,6 +424,10 @@ Reset, and Code Security/Debugging */ /* Reset, reset source identification */ #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 */ #define CSPR (*(volatile unsigned long *)(SCB_BASE_ADDR + 0x184))