nuttx/arch
Michal Lenc 2849cd7c6d arch/samv7: add function to retrieve reset cause from HW
SAMv7 reset controller stores the cause of last reset (SW reset, power up,
pin reset etc.) in status register. This commit adds function that allows
the board to retrieve this information. This function should be called
from board support layer either during initialization or based on
incoming ioctl call.

Adding the sam_get_reset_cause() to sam_systemreset.c also resulted in
always compiling this file by default and only putting up_systemreset()
under CONFIG_SAMV7_SYSTEMRESET option.

Also header file sam_systemreset.h was created as it defines reset types
in comfortable manner for future processing in board layer. This is done
to avoid passing boardctl dependent structure to architecture layer.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2024-02-07 13:26:37 -03:00
..
arm arch/samv7: add function to retrieve reset cause from HW 2024-02-07 13:26:37 -03:00
arm64 docs/comments: fix some typos 2024-01-15 13:22:13 +08:00
avr arch/: remove duplicated task exit logs 2024-01-17 09:18:17 -08:00
ceva docs/comments: fix some typos 2024-01-15 13:22:13 +08:00
dummy
hc arch/: remove duplicated task exit logs 2024-01-17 09:18:17 -08:00
mips arch/: remove duplicated task exit logs 2024-01-17 09:18:17 -08:00
misoc arch/: remove duplicated task exit logs 2024-01-17 09:18:17 -08:00
or1k arch/: remove duplicated task exit logs 2024-01-17 09:18:17 -08:00
renesas arch/: remove duplicated task exit logs 2024-01-17 09:18:17 -08:00
risc-v arch/risc-v/src/mpfs/mpfs_serial.c: Allow switching uart output to console off 2024-02-06 08:53:05 -08:00
sim rptun: Remove the empty implementation of get_firmware and get_addrenv 2024-02-04 09:54:05 +01:00
sparc arch/: remove duplicated task exit logs 2024-01-17 09:18:17 -08:00
x86 arch/: remove duplicated task exit logs 2024-01-17 09:18:17 -08:00
x86_64 cosmetic changes after pci code rebase 2024-01-25 09:09:30 -08:00
xtensa esp32/dac-one-shot: lower-half driver for ESP32 internal DAC 2024-02-02 09:23:28 -08:00
z16 arch/: remove duplicated task exit logs 2024-01-17 09:18:17 -08:00
z80 arch/: remove duplicated task exit logs 2024-01-17 09:18:17 -08:00
CMakeLists.txt
Kconfig arch/Kconfig: replace RPTUN_PING with RPMSG_PING 2024-02-01 16:50:23 +08:00