void app_main()

in proj/espressif/esp32/app/main/main.c [33:50]


void app_main(void)
{
    /* MCUBoot reverts to previous confirmed image, unless tentative image is confirmed too. */
    boot_set_confirmed();

    struct image_header xImageHeader = { 0 };
    bReadImageHeader( &xImageHeader );
    printf("Application Version: %d.%d.%d\n",
           xImageHeader.ih_ver.iv_major,
           xImageHeader.ih_ver.iv_minor,
           xImageHeader.ih_ver.iv_revision );

    while(1)
    {
        printf("Hello world!\n");
        vTaskDelay(pdMS_TO_TICKS(1000));
    }
}