HW_RESET_ATY.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * @file HW_RESET_ATY.h
  3. *
  4. * @param Project DEVICE_GENERAL_ATY_LIB
  5. *
  6. * @author ATY
  7. *
  8. * @copyright
  9. * - Copyright 2017 - 2026 MZ-ATY
  10. * - This code follows:
  11. * - MZ-ATY Various Contents Joint Statement -
  12. * <a href="https://mengze.top/MZ-ATY_VCJS">
  13. * https://mengze.top/MZ-ATY_VCJS</a>
  14. * - CC 4.0 BY-NC-SA -
  15. * <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">
  16. * https://creativecommons.org/licenses/by-nc-sa/4.0/</a>
  17. * - Your use will be deemed to have accepted the terms of this statement.
  18. *
  19. * @brief functions of soft reset for CMSIS devices
  20. *
  21. * @version
  22. * - 1_01_221029 > ATY
  23. * -# Preliminary version, first Release
  24. ********************************************************************************
  25. */
  26. #ifndef __HW_RESET_ATY_H
  27. #define __HW_RESET_ATY_H
  28. #include "INCLUDE_ATY.h"
  29. /******************************* For user *************************************/
  30. // Enable RTC to transmit info to app
  31. #ifndef APPLICATION_ADDRESS
  32. /* Start user code address: ADDR_FLASH_PAGE_8 */
  33. #define APPLICATION_ADDRESS (uint32_t)0x08006000
  34. #endif
  35. /******************************************************************************/
  36. void ResetBeforeJumpToApp(void);
  37. void Bootloader_DeInit(void);
  38. void JumpToApp(uint32_t addr);
  39. void UsbReconnect(void);
  40. void BL_JumpToAppFull(uint32_t addr);
  41. void APP_StartupInit(void);
  42. typedef void (*pFunction)(void);
  43. #endif /* __HW_RESET_ATY_H */
  44. /******************************** End Of File *********************************/