/* * Model: XFT.qm * File: ${.::app::main.c} * * This code has been generated by QM 5.2.5 . * DO NOT EDIT THIS FILE MANUALLY. All your changes will be lost. * * SPDX-License-Identifier: GPL-3.0-or-later * * This generated code is open source software: you can redistribute it under * the terms of the GNU General Public License as published by the Free * Software Foundation. * * This code 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. * * NOTE: * Alternatively, this generated code may be distributed under the terms * of Quantum Leaps commercial licenses, which expressly supersede the GNU * General Public License and are specifically designed for licensees * interested in retaining the proprietary status of their code. * * Contact information: * * */ #include "../mcc_generated_files/mcc.h" #include "../app/factory.h" #include "../xf/xf.h" void main(void) { // Initialize the device SYSTEM_Initialize(); // Enable the Global Interrupts INTERRUPT_GlobalInterruptEnable(); //INTERRUPT_GlobalInterruptDisable(); //INTERRUPT_PeripheralInterruptEnable(); //INTERRUPT_PeripheralInterruptDisable(); XF_init(); Factory_init(); Factory_build(); Factory_start(); TMR0_SetInterruptHandler(XF_decrementAndQueueTimers); while (1) { XF_executeOnce(); } }