Index: firmware/App/Services/Interrupts.c =================================================================== diff -u -r3518e8a088c32e75c0c8960d5e629a7401095feb -r395522dffef1348e176564925656012f529c1910 --- firmware/App/Services/Interrupts.c (.../Interrupts.c) (revision 3518e8a088c32e75c0c8960d5e629a7401095feb) +++ firmware/App/Services/Interrupts.c (.../Interrupts.c) (revision 395522dffef1348e176564925656012f529c1910) @@ -1,17 +1,17 @@ /************************************************************************** * -* Copyright (c) 2024-2024 Diality Inc. - All Rights Reserved. +* Copyright (c) 2024-2026 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 Interrupts.c * -* @author (last) Sean -* @date (last) 30-Jul-2024 +* @author (last) Sean Nash +* @date (last) 22-May-2025 * -* @author (original) Sean -* @date (original) 30-Jul-2024 +* @author (original) Sean Nash +* @date (original) 01-Aug-2024 * ***************************************************************************/ @@ -41,10 +41,6 @@ #define MAX_COMM_ERRORS 5 ///< Maximum number of a given comm error for a given time window. #define COMM_ERROR_TIME_WINDOW_MS (10 * SEC_PER_MIN * MS_PER_SECOND) ///< Time window for comm error counts. -#define HET1_EDGE_BP_ROTOR_HALL_SENSOR 0 ///< HET1 edge detector associated with blood pump rotor hall sensor. -#define HET1_EDGE_DPO_ROTOR_HALL_SENSOR 1 ///< HET1 edge detector associated with dialysate outlet pump rotor hall sensor. -#define HET1_EDGE_DPI_ROTOR_HALL_SENSOR 2 ///< HET1 edge detector associated with dialysate inlet pump rotor hall sensor. - // ********** private data ********** static BOOL sci2FEOEError = FALSE; ///< FPGA serial frame or overrun flag; @@ -55,6 +51,7 @@ // ********** private function prototypes ********** + /*********************************************************************//** * @brief * The initInterrupts function initializes the Interrupts unit. @@ -247,33 +244,6 @@ /*********************************************************************//** * @brief - * The edgeNotification function handles hall sensor interrupts. - * @details \b Alarm: ALARM_ID_TD_SOFTWARE_FAULT if given edge is invalid/unexpected. - * @details \b Inputs: none - * @details \b Outputs: Hall sensor interrupt is handled according given pulse edge. - * @param hetREG HET controller associated with the edge - * @param edge ID of pulse edge that triggered this interrupt - * @return none - *************************************************************************/ -void edgeNotification(hetBASE_t * hetREG, uint32 edge) -{ - if ( hetREG == hetREG1 ) - { - switch ( edge ) - { - case HET1_EDGE_BP_ROTOR_HALL_SENSOR: -// signalBloodPumpRotorHallSensor(); - break; - - default: - SET_ALARM_WITH_2_U32_DATA( ALARM_ID_TD_SOFTWARE_FAULT, SW_FAULT_ID_INTERRUPTS_INVALID_EDGE_DETECTED, edge ) - break; - } - } -} - -/*********************************************************************//** - * @brief * The getSci2FEOEError function returns the sci2FEOEError (OE - Overrun, * FE - Framing Error) status and resets the status if TRUE * @details \b Inputs: sci2FEOEError