-void start(void)
-{
-#ifdef AO_BOOT_CHAIN
- if (ao_boot_check_chain()) {
-#ifdef AO_BOOT_PIN
- if (ao_boot_check_pin())
-#endif
- {
- ao_boot_chain(AO_BOOT_APPLICATION_BASE);
- }
- }
-#endif
- /* Set interrupt vector table offset */
- stm_nvic.vto = (uint32_t) &stm_interrupt_vector;
- memcpy(&_start__, &__text_end__, &_end__ - &_start__);
- memset(&__bss_start__, '\0', &__bss_end__ - &__bss_start__);
- main();
-}
-