17 lines
388 B
C
17 lines
388 B
C
/**
|
|
* Copyright (c) @CompanyNameMagicTag 2023-2023. All rights reserved. \n
|
|
*
|
|
* Description: Provides reset driver source \n
|
|
* Author: @CompanyNameTag \n
|
|
* History: \n
|
|
* 2023-10-18, Create file. \n
|
|
*/
|
|
#include "reset.h"
|
|
#include "hal_reboot.h"
|
|
#include "cpu_utils.h"
|
|
|
|
void RebootDevice(unsigned int cause)
|
|
{
|
|
cpu_utils_set_system_status_by_cause(cause);
|
|
hal_reboot_chip();
|
|
} |