blob: 3f1e0cf638d98a571fddc426d9dffcca6c404ff2 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <stdio.h>
2#include <stdlib.h>
lh758261d2023-07-13 05:52:04 -07003#include "zxic_fota_ab_upgrade.h"
lh9ed821d2023-04-07 01:36:19 -07004
5int main(int argc, char *argv[])
6{
lh758261d2023-07-13 05:52:04 -07007 int ret = zxic_dual_get_current_system();
lh9ed821d2023-04-07 01:36:19 -07008
9 switch (ret)
10 {
lh758261d2023-07-13 05:52:04 -070011 case Z_DUAL_SYSTEM:
lh9ed821d2023-04-07 01:36:19 -070012 printf("ab_bootinfo:ab_a\n");
lh758261d2023-07-13 05:52:04 -070013 ret = 1;
lh9ed821d2023-04-07 01:36:19 -070014 break;
lh758261d2023-07-13 05:52:04 -070015 case Z_DUAL_SYSTEM2:
lh9ed821d2023-04-07 01:36:19 -070016 printf("ab_bootinfo:ab_b\n");
lh758261d2023-07-13 05:52:04 -070017 ret = 2;
lh9ed821d2023-04-07 01:36:19 -070018 break;
19 default:
20 printf("[error]ab_bootinfo:%d\n", ret);
lh758261d2023-07-13 05:52:04 -070021 ret = 1;
lh9ed821d2023-04-07 01:36:19 -070022 break;
23 }
24 return ret;
25}