Index: firmware/App/Drivers/SafetyShutdown.c =================================================================== diff -u -r7fa65a3aae9c4ef70a6e53f3e3bb20f0425bd681 -r8e7158d8231435496fcf1d5649e51babf859ccc7 --- firmware/App/Drivers/SafetyShutdown.c (.../SafetyShutdown.c) (revision 7fa65a3aae9c4ef70a6e53f3e3bb20f0425bd681) +++ firmware/App/Drivers/SafetyShutdown.c (.../SafetyShutdown.c) (revision 8e7158d8231435496fcf1d5649e51babf859ccc7) @@ -1,18 +1,19 @@ -/**********************************************************************//** - * - * 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 SafetyShutdown.c - * - * @date 20-Sep-2019 - * @author S. Nash - * - * @brief Controller for the safety shutdown signal. - * - **************************************************************************/ +/************************************************************************** +* +* Copyright (c) 2019-2021 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 SafetyShutdown.c +* +* @author (last) Sean Nash +* @date (last) 24-Sep-2020 +* +* @author (original) Dara Navaei +* @date (original) 05-Nov-2019 +* +***************************************************************************/ #include #include "gio.h" @@ -42,9 +43,8 @@ /*********************************************************************//** * @brief * The initSafetyShutdown function initializes the Buttons module. - * @details - * Inputs : none - * Outputs : Safety Shutdown module signal output set to initial state. + * @details Inputs: none + * @details Outputs: Safety Shutdown module signal output set to initial state. * @return none *************************************************************************/ void initSafetyShutdown( void ) @@ -55,9 +55,8 @@ /*********************************************************************//** * @brief * The activateSafetyShutdown function activates the safety shutdown signal. - * @details - * Inputs : none - * Outputs : Safety Shutdown signal output set to active state. + * @details Inputs: none + * @details Outputs: Safety Shutdown signal output set to active state. * @return none *************************************************************************/ void activateSafetyShutdown( void ) @@ -68,11 +67,10 @@ /*********************************************************************//** * @brief - * The isSafetyShutdownActivated function returns whether the safety shutdown \n + * The isSafetyShutdownActivated function returns whether the safety shutdown * signal has been activated. - * @details - * Inputs : none - * Outputs : none + * @details Inputs: none + * @details Outputs: none * @return safetyShutdownActivated *************************************************************************/ BOOL isSafetyShutdownActivated( void ) @@ -82,12 +80,11 @@ /*********************************************************************//** * @brief - * The testSetSafetyShutdownOverride function overrides the HD safety \n + * The testSetSafetyShutdownOverride function overrides the HD safety * shutdown. - * @details - * Inputs : none - * Outputs : HD safety shutdown overridden - * @param value : TRUE to activate safety shutdown, FALSE to de-activate it. + * @details Inputs: none + * @details Outputs: HD safety shutdown overridden + * @param value TRUE to activate safety shutdown, FALSE to de-activate it. * @return TRUE if override successful, FALSE if not *************************************************************************/ BOOL testSetSafetyShutdownOverride( U32 value ) @@ -96,8 +93,6 @@ if ( TRUE == isTestingActivated() ) { - MOTOR_DIR_T dir; - // remember natural state before override so we can reset safetyShutdownOverrideResetState = safetyShutdownActivated; // override safety shutdown signal @@ -118,11 +113,10 @@ /*********************************************************************//** * @brief - * The testResetSafetyShutdownOverride function resets the override of the \n + * The testResetSafetyShutdownOverride function resets the override of the * HD safety shutdown. - * @details - * Inputs : none - * Outputs : shutdown override reset + * @details Inputs: none + * @details Outputs: shutdown override reset * @return TRUE if override reset successful, FALSE if not *************************************************************************/ BOOL testResetSafetyShutdownOverride( void )