app_loader.h 615 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __APP_LOADER_H__
  2. #define __APP_LOADER_H__
  3. /* Includes ------------------------------------------------------------------*/
  4. #define STM32F103 1
  5. #define STM32F072 0
  6. #if STM32F103
  7. #include "stm32f1xx_hal.h"
  8. #define NEW_VECTOR_OFFSET (uint32_t)0x00003000
  9. #elif STM32F072
  10. #include "stm32f0xx_hal.h"
  11. #define APPLICATION_ADDRESS (uint32_t)0x08003000
  12. #define NEW_VECTOR_ADDRESS (uint32_t)0x20000000
  13. #endif
  14. extern void IAP_Init(void);
  15. #endif /*___APP_LOADER_H__ */
  16. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/