Index: firmware/App/Services/SystemCommDD.h =================================================================== diff -u -r8b8fff67b95805272f37855346d600599aaec03d -r52ded7b22d4b413aa8182f1343e4fbb78e8c3b0a --- firmware/App/Services/SystemCommDD.h (.../SystemCommDD.h) (revision 8b8fff67b95805272f37855346d600599aaec03d) +++ firmware/App/Services/SystemCommDD.h (.../SystemCommDD.h) (revision 52ded7b22d4b413aa8182f1343e4fbb78e8c3b0a) @@ -33,17 +33,8 @@ // ********** public definitions ********** -/* -#define MESSAGE_SYNC_BYTE 0xA5 ///< Denali message syncronization byte. - -#define CAN_MESSAGE_PAYLOAD_SIZE 8 ///< CAN frame payload size (in bytes). - -#define MSG_ID_ACK_MESSAGE_THAT_REQUIRES_ACK 0xFFFF ///< Denali message ID for acknowledging received messages (when required). -#define MSG_ACK_BIT 0x8000 ///< ACK bit in sequence number that indicates an ACK is required. #define MAX_MSG_SEQ_NO 0x7FFF ///< Maximum sequence number for Denali message (then wraps to 1). #define MIN_MSG_SEQ_NO 0x0001 ///< Minimum sequence number for Denali message. -#define MAX_ACK_MSG_SIZE ( sizeof( MESSAGE_WRAPPER_T ) + 1 + CAN_MESSAGE_PAYLOAD_SIZE ) ///< Maximum size (in bytes) of Denali message including full (wrapped) message + sync + any CAN padding) -*/ #define NUM_OF_CAN_OUT_BUFFERS 5 ///< Number of CAN buffers for transmit #define NUM_OF_CAN_IN_BUFFERS 9 ///< Number of CAN buffers for receiving @@ -58,7 +49,8 @@ BOOL isOnlyCANNode( void ); void setOnlyCANNode( BOOL only ); void clearCANXmitBuffers( void ); -void checkForCommTimeouts( void ); +void checkForCommTimeouts( void ); +void checkTooManyBadMsgCRCs( void ); BOOL testSetHDCommunicationStatus( U32 value ); BOOL testResetHDCommuncationStatus( void );