2
// � 2010 Shadow Robot Company Limited.
4
// FileName: bootloader.h
7
// Compiler: MPLAB� C32
9
// +------------------------------------------------------------------------+
10
// | This file is part of The Shadow Robot PIC32 firmware code base. |
12
// | It is free software: you can redistribute it and/or modify |
13
// | it under the terms of the GNU General Public License as published by |
14
// | the Free Software Foundation, either version 3 of the License, or |
15
// | (at your option) any later version. |
17
// | It is distributed in the hope that it will be useful, |
18
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
19
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
20
// | GNU General Public License for more details. |
22
// | You should have received a copy of the GNU General Public License |
23
// | along with this code repository. The text of the license can be found |
24
// | in Pic32/License/gpl.txt. If not, see <http://www.gnu.org/licenses/>. |
25
// +------------------------------------------------------------------------+
35
//! This file contains the definitions of the bootloading commands.
41
#ifndef BOOTLOADER_H_INCLUDED
42
#define BOOTLOADER_H_INCLUDED
44
//! These are the different commands the bootloader accepts.
48
WRITE_FLASH_DATA_COMMAND = 0x00,
49
READ_FLASH_COMMAND = 0x01,
50
ERASE_FLASH_COMMAND = 0x02,
52
READ_VERSION_COMMAND = 0x04,
53
WRITE_FLASH_ADDRESS_COMMAND = 0x05,
54
START_FLASH_WRITE_COMMAND = 0x06,