/**
* @file HW_RESET_ATY.h
*
* @param Project DEVICE_GENERAL_ATY_LIB
*
* @author ATY
*
* @copyright
* - Copyright 2017 - 2026 MZ-ATY
* - This code follows:
* - MZ-ATY Various Contents Joint Statement -
*
* https://mengze.top/MZ-ATY_VCJS
* - CC 4.0 BY-NC-SA -
*
* https://creativecommons.org/licenses/by-nc-sa/4.0/
* - Your use will be deemed to have accepted the terms of this statement.
*
* @brief functions of soft reset for CMSIS devices
*
* @version
* - 1_01_221029 > ATY
* -# Preliminary version, first Release
********************************************************************************
*/
#ifndef __HW_RESET_ATY_H
#define __HW_RESET_ATY_H
#include "INCLUDE_ATY.h"
/******************************* For user *************************************/
// Enable RTC to transmit info to app
#ifndef APPLICATION_ADDRESS
/* Start user code address: ADDR_FLASH_PAGE_8 */
#define APPLICATION_ADDRESS (uint32_t)0x08006000
#endif
/******************************************************************************/
void ResetBeforeJumpToApp(void);
void Bootloader_DeInit(void);
void JumpToApp(uint32_t addr);
void UsbReconnect(void);
void BL_JumpToAppFull(uint32_t addr);
void APP_StartupInit(void);
typedef void (*pFunction)(void);
#endif /* __HW_RESET_ATY_H */
/******************************** End Of File *********************************/