From: Nathael Pajani Date: Sun, 30 Jan 2022 03:18:01 +0000 (+0100) Subject: Fix registers definition for LPC82x system registers X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=c5e449ce29b989acbd6aebb5985b9d893e60b709;p=soft%2Flpc82x%2Fcore Fix registers definition for LPC82x system registers --- diff --git a/include/core/system.h b/include/core/system.h index de474b5..cba038a 100644 --- a/include/core/system.h +++ b/include/core/system.h @@ -103,10 +103,10 @@ void usleep(uint32_t us); /* System Configuration (SYSCON) */ struct lpc_sys_start_logic_ctrl { - volatile uint32_t edge_ctrl; /* 0x00 : edge control Register 0 (R/W) */ - volatile uint32_t signal_en; /* 0x04 : signal enable Register 0 (R/W) */ - volatile uint32_t reset; /* 0x08 : reset Register 0 (-/W) */ - volatile uint32_t status; /* 0x0C : status Register 0 (R/-) */ + volatile uint32_t unused_0; /* 0x00 */ + volatile uint32_t wakeup_en; /* 0x04 : Start logic interrupt enable Register (R/W) */ + volatile uint32_t unused_1; /* 0x08 */ + volatile uint32_t unused_2; /* 0x0C */ }; struct lpc_sys_config { @@ -165,7 +165,7 @@ struct lpc_sys_config volatile uint32_t powerdown_sleep_cfg; /* 0x230 : Power-down states in Deep-sleep mode (R/W) */ volatile uint32_t powerdown_wake_cfg; /* 0x234 : Power-down states after wake-up (R/W) */ - volatile uint32_t powerdown_run_cfg; /* 0x238 : Power-down configuration Register (R/W) */ + volatile uint32_t powerdown_run_cfg; /* 0x238 : Power-down configuration Register (R/W) */ uint32_t reserved_13[110]; volatile const uint32_t device_id; /* 0x3F4 : Device ID (R/ ) */ };