Index: firmware/App/Common.h =================================================================== diff -u -r09e6320e3f3c3c973de0b66e5799d710db8cc427 -r5a58fd72ededee8a718098b53448a2c921c57f49 --- firmware/App/Common.h (.../Common.h) (revision 09e6320e3f3c3c973de0b66e5799d710db8cc427) +++ firmware/App/Common.h (.../Common.h) (revision 5a58fd72ededee8a718098b53448a2c921c57f49) @@ -24,6 +24,7 @@ #define MASK_OFF_MSB 0x00FF ///< Bits to mask off the most significant byte of a 2-byte word. #define MASK_OFF_LSB 0xFF00 ///< Bits to mask off the least significant byte of a 2-byte word. #define SHIFT_8_BITS_FOR_BYTE_SHIFT 8 ///< Number of bits to shift in order to shift a byte. +#define SHIFT_4_BITS_FOR_NIBBLE 4 ///< Number of bits to shift in order to shift a nibble. #define MASK_OFF_NIBBLE_MSB 0x0F ///< Bits to mask off the most significant nibble of a byte. #define SW_UPDATE_LEN_MSB_INDEX 3 ///< Software update payload length most significant byte. #define SW_UPDATE_LEN_LSB_INDEX 2 ///< Software update payload length least significant byte. @@ -82,6 +83,14 @@ NUM_OF_UPDATE_DESTS ///< Number of update destinations. } SW_UPDATE_DESINTATION_T; +/// Software update stack +typedef enum SW_Stacks +{ + TD = 0, ///< TD. + DD, ///< DD. + NUM_OF_STACKS ///< Number of software stacks. +} SW_UPDATE_STACK_T; + /// Software update CAN mailboxes enumeration typedef enum SW_Update_CAN_Mail_Boxes { @@ -124,10 +133,7 @@ { UPDATE_CMD_START = 0, ///< Update command start. UPDATE_CMD_ABORT, ///< Update command abort. - UPDATE_CMD_RUNAPP, // TODO is this needed? UPDATE_CMD_VERIFY, ///< Update command verify. - UPDATE_CMD_VERSION, // TODO is this needed? - UPDATE_CMD_VERIFIED, // TODO is this needed? UPDATE_CMD_RESYNC, ///< Update command resync. UPDATE_CMD_IDLE, ///< Update command idle. NUM_OF_UPDATE_CMDS ///< Number of update commands.