//*****************************************************************************
//
// bl_commands.h - The list of commands and return messages supported by the
//                 boot loader.
//
// Copyright (c) 2006-2011 Texas Instruments Incorporated.  All rights reserved.
// Software License Agreement
// 
// Texas Instruments (TI) is supplying this software for use solely and
// exclusively on TI's microcontroller products. The software is owned by
// TI and/or its suppliers, and is protected under applicable copyright
// laws.
//
//*****************************************************************************

#ifndef __BL_COMMANDS_H__
#define __BL_COMMANDS_H__

//*****************************************************************************
// These defines are used to define the range of values that are used for
// CAN update protocol.
// The CAN ID can be either 11-bit or 28-bit, the first 4 bit is used for
// bootloader commands
//*****************************************************************************
#define CAN_MSGID_MFR           0x5A0

//*****************************************************************************
// The Hercules Firmware Update API definitions.
//*****************************************************************************
#define CAN_API_UPD                        CAN_MSGID_MFR                  //0x5a0
#define CAN_COMMAND_PING                   (CAN_API_UPD | 0) << 0         //0x5a0
#define CAN_COMMAND_DOWNLOAD               (CAN_API_UPD | 1) << 0         //0x5a1
#define CAN_COMMAND_RUN                    (CAN_API_UPD | 2) << 0         //0x5a2
#define CAN_COMMAND_REQUEST                (CAN_API_UPD | 3) << 0         //0x5a3
#define CAN_COMMAND_SEND_DATA              (CAN_API_UPD | 4) << 0         //0x5a4
#define CAN_COMMAND_RESET                  (CAN_API_UPD | 5) << 0         //0x5a5
#define CAN_COMMAND_ACK                    (CAN_API_UPD | 6) << 0         //0x5a6


#endif // __BL_COMMANDS_H__
