unsigned platform_reset_cause(void);
platform_reset_cause reads the reason for a microcontroller reset and clears the reset cause flags. The value returned is the inclusive-or of the individual causes in PLATFORM_RESET_CAUSE_t.
PLATFORM_RESET_CAUSE_t