/************************************************************************** * * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * @file TaskPriority.c * * @date 19-Sep-2019 * @author S. Nash * * @brief Priority task handler. * **************************************************************************/ #include "FPGA.h" #include "gio.h" #include "InternalADC.h" #include "LoadCell.h" #include "TaskPriority.h" #include "Valves.h" #include "WatchdogMgmt.h" /************************************************************************* * @brief taskPriority * The taskPriority function handles the scheduled Priority Task interrupt. * Calls the executive functions for FPGA, pumps, valves, and buttons. * @details * Inputs : none * Outputs : Executive for the FPGA, pumps, valves, and buttons called. *************************************************************************/ void taskPriority( void ) { // 1st pass for FPGA execFPGAIn(); // monitor internal ADC channels execInternalADC(); // monitor load cells execLoadCell(); // monitor valves execValves(); // 2nd pass for FPGA execFPGAOut(); // check in with watchdog manager checkInWithWatchdogMgmt( TASK_PRIORITY ); // toggle GPIO to indicate priority task has executed //gioToggleBit( gioPORTB, 3 ); }