PicoSDK
+
0
/2 examples
SourceVu will show references to
watchdog_hw_t
from the following samples and libraries:
boot_info sample
narrow_io_write sample
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
Raspberry Pi Pico SDK and Examples
PicoSDK
watchdog_hw_t
watchdog_hw_t struct
Syntax
Show:
Summary
Declaration
from
watchdog.h:26
typedef
struct
{
_REG_
(
WATCHDOG_CTRL_OFFSET
)
io_rw_32
ctrl
;
_REG_
(
WATCHDOG_LOAD_OFFSET
)
io_wo_32
load
;
_REG_
(
WATCHDOG_REASON_OFFSET
)
io_ro_32
reason
;
_REG_
(
WATCHDOG_SCRATCH0_OFFSET
)
io_rw_32
scratch
[
8
]
;
}
watchdog_hw_t
;
Fields
Field
Declared as
watchdog_hw_t::ctrl
io_rw_32
watchdog_hw_t::load
io_wo_32
watchdog_hw_t::reason
io_ro_32
watchdog_hw_t::scratch
io_rw_32
[
8
]
Examples
watchdog_hw_t
is referenced by 2 libraries and example projects:
boot_info sample
narrow_io_write sample
References
from
0/2
examples
Code
Location
Referrer
typedef
struct
{
watchdog.h:26
}
watchdog_hw_t
;
watchdog.h:53
watchdog_hw
->
load
=
load_value
;
watchdog.c:27
watchdog_update()
return
watchdog_hw
->
ctrl
&
WATCHDOG_CTRL_TIME_BITS
;
watchdog.c:32
watchdog_get_time_remaining_ms()
hw_clear_bits
(
&
watchdog_hw
->
ctrl
,
WATCHDOG_CTRL_ENABLE_BITS
)
;
watchdog.c:45
_watchdog_enable()
hw_set_bits
(
&
watchdog_hw
->
ctrl
,
dbg_bits
)
;
watchdog.c:55
_watchdog_enable()
hw_clear_bits
(
&
watchdog_hw
->
ctrl
,
dbg_bits
)
;
watchdog.c:57
_watchdog_enable()
hw_set_bits
(
&
watchdog_hw
->
ctrl
,
WATCHDOG_CTRL_TRIGGER_BITS
)
;
watchdog.c:61
_watchdog_enable()
hw_set_bits
(
&
watchdog_hw
->
ctrl
,
WATCHDOG_CTRL_ENABLE_BITS
)
;
watchdog.c:72
_watchdog_enable()
watchdog_hw
->
scratch
[
4
]
=
WATCHDOG_NON_REBOOT_MAGIC
;
watchdog.c:82
watchdog_enable()
hw_clear_bits
(
&
watchdog_hw
->
ctrl
,
WATCHDOG_CTRL_ENABLE_BITS
)
;
watchdog.c:87
watchdog_disable()
check_hw_layout
(
watchdog_hw_t
,
scratch
[
7
]
,
WATCHDOG_SCRATCH7_OFFSET
)
;
watchdog.c:91
watchdog_reboot()
hw_clear_bits
(
&
watchdog_hw
->
ctrl
,
WATCHDOG_CTRL_ENABLE_BITS
)
;
watchdog.c:94
watchdog_reboot()
watchdog_hw
->
scratch
[
4
]
=
0xb007c0d3
;
watchdog.c:100
watchdog_reboot()
watchdog_hw
->
scratch
[
5
]
=
pc
^
-
0xb007c0d3
;
watchdog.c:101
watchdog_reboot()
watchdog_hw
->
scratch
[
6
]
=
sp
;
watchdog.c:102
watchdog_reboot()
watchdog_hw
->
scratch
[
7
]
=
pc
;
watchdog.c:103
watchdog_reboot()
watchdog_hw
->
scratch
[
4
]
=
0
;
watchdog.c:106
watchdog_reboot()
return
watchdog_hw
->
reason
&&
rom_get_last_boot_type
(
)
==
BOOT_TYPE_NORMAL
;
watchdog.c:119
watchdog_caused_reboot()
return
watchdog_hw
->
reason
&&
watchdog_hw
->
scratch
[
4
]
==
WATCHDOG_NON_REBOOT_MAGIC
;
watchdog.c:124
watchdog_enable_caused_reboot()
}
watchdog_hw_t
;
watchdog.h:53
watchdog_hw_t
static_assert
(
sizeof
(
watchdog_hw_t
)
==
0x002c
,
""
)
;
watchdog.h:56
Call Tree
from
0/2
examples
All items filtered out
All items filtered out
Data Use
from
0/2
examples
All items filtered out
All items filtered out
Class Tree
from
0/2
examples
All items filtered out
All items filtered out
Override Tree
from
0/2
examples
All items filtered out
All items filtered out
Implementations
from
0/2
examples
All items filtered out
All items filtered out
Instances
from
0/2
examples
Lifecycle
from
0/2
examples
All items filtered out
All items filtered out