include
sr_external_dependencies
external
simplemotor-bootloader
bootloader.h
Go to the documentation of this file.
1
//
2
// © 2010 Shadow Robot Company Limited.
3
//
4
// FileName: bootloader.h
5
// Dependencies:
6
// Processor: PIC18
7
// Compiler: MPLAB® C32
8
//
9
// +------------------------------------------------------------------------+
10
// | This file is part of The Shadow Robot PIC32 firmware code base. |
11
// | |
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. |
16
// | |
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. |
21
// | |
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
// +------------------------------------------------------------------------+
26
//
27
//
28
//
29
//
30
// Doxygen
31
// -------
32
//
38
//
39
40
41
#ifndef BOOTLOADER_H_INCLUDED
42
#define BOOTLOADER_H_INCLUDED
43
46
typedef
enum
47
{
48
WRITE_FLASH_DATA_COMMAND
= 0x00,
49
READ_FLASH_COMMAND
= 0x01,
50
ERASE_FLASH_COMMAND
= 0x02,
51
RESET_COMMAND
= 0x03,
52
READ_VERSION_COMMAND
= 0x04,
53
WRITE_FLASH_ADDRESS_COMMAND
= 0x05,
54
START_FLASH_WRITE_COMMAND
= 0x06,
55
MAGIC_PACKET
= 0x0A
56
}
BOOTLOADER_COMMAND
;
57
58
59
#endif
READ_FLASH_COMMAND
Definition:
bootloader.h:49
START_FLASH_WRITE_COMMAND
Definition:
bootloader.h:54
READ_VERSION_COMMAND
Definition:
bootloader.h:52
RESET_COMMAND
Definition:
bootloader.h:51
BOOTLOADER_COMMAND
BOOTLOADER_COMMAND
Definition:
bootloader.h:46
MAGIC_PACKET
Definition:
bootloader.h:55
WRITE_FLASH_DATA_COMMAND
Definition:
bootloader.h:48
ERASE_FLASH_COMMAND
Definition:
bootloader.h:50
WRITE_FLASH_ADDRESS_COMMAND
Definition:
bootloader.h:53
sr_external_dependencies
Author(s): Ugo Cupcic
autogenerated on Mon Feb 28 2022 23:50:40