/* Cpu1_Main.c * * Copyright (C) 2014-2024 wolfSSL Inc. * * This file is part of wolfBoot. * * wolfBoot is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * wolfBoot is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with wolfBoot. If not, see . */ #include "Ifx_Types.h" #include "IfxCpu.h" #include "IfxScuWdt.h" extern IfxCpu_syncEvent g_cpuSyncEvent; void core1_main(void) { IfxCpu_enableInterrupts(); /* !!WATCHDOG1 IS DISABLED HERE!! * Enable the watchdog and service it periodically if it is required */ IfxScuWdt_disableCpuWatchdog(IfxScuWdt_getCpuWatchdogPassword()); /* Wait for CPU sync event */ IfxCpu_emitEvent(&g_cpuSyncEvent); IfxCpu_waitEvent(&g_cpuSyncEvent, 1); while(1) { } }