/************************************************************************* * * Copyright Diality, Inc. 2019-2020. All Rights Reserved. * 181 Technology, Ste. 150 * Irvine, CA 92618 * * Project Denali * * @file TaskPriority.c * * @brief Priority task handler. * * @date 19-Sep-2019 * *************************************************************************/ #include "gio.h" #include "WatchdogMgmt.h" #include "Buttons.h" #include "TaskPriority.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 ) { // monitor and process buttons execButtons(); // check in with watchdog manager checkInWithWatchdogMgmt( TASK_PRIORITY ); // toggle GPIO to indicate priority task has executed // gioToggleBit( gioPORTB, 3 ); }