1 #include "2ndboot.h" 2 ota_2ndboot_os_entry(void)3void ota_2ndboot_os_entry(void) 4 { 5 return; 6 } 7 ota_2ndboot_image_entry(void)8void ota_2ndboot_image_entry(void) 9 { 10 printf("2ndboot image start \n"); 11 12 /* normal start */ 13 printf("os image start\r\n"); 14 ota_2ndboot_os_entry(); 15 } 16 17 #ifdef AOS_2ND_BOOT_AB 18 extern int ota_get_ab_boot(void); 19 extern void ota_switch_ab_boot(void); 20 ota_2ndboot_ab_get(void)21int ota_2ndboot_ab_get(void) 22 { 23 return ota_get_ab_boot(); 24 } ota_2ndboot_ab_switch(void)25void ota_2ndboot_ab_switch(void) 26 { 27 ota_switch_ab_boot(); 28 } 29 #endif 30 31 32 33