www.beck-ipc.com

@CHIP-RTOS C Library V2.06 - Hardware API


hal_get_reboot_reason

Get reboot reason.

int hal_get_reboot_reason ( void );

Parameters

-- none --

Return Value

reason:
    0 = UNKNOWN
    3 = WATCHDOG
    4 = POWER FAIL

Comments

This function only returns valid results if the init/restore hal_init_non_volatile_data function was called following the reboot.

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3
    V1.00V1.00V1.00V0.90

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document