HWA
Bare metal programming with style
|
A class _corec
object is a core of the device.
It is used in:
core0
configure
:
wait, irq
: puts the core into sleeping mode
The hw(stat,)
instruction returns the status flags of the core in a structure whose typename is given by the hw_stat_t()
instruction. Available flags are
porf
or reset_by_power_on
1 if reset was caused by power-onextrf
or reset_by_reset_pin
1 if reset was caused by external pin RESETborf
or reset_by_brown_out
1 if reset was caused by brown-out detectionwdrf
or reset_by_watchdog
1 if reset was caused by watchdogjtrf
or reset_by_jtag
1 if reset was caused by JTAGusbrf
or reset_by_usb
1 if reset was caused by USB
clear
: clears the status flags all at once