~shadowrobot/sr-ros-interface-ethercat/electric

« back to all changes in this revision

Viewing changes to sr_external_dependencies/released/external/simplemotor-bootloader/bootloader.h

  • Committer: Ugo Cupcic
  • Date: 2012-08-08 10:17:21 UTC
  • mfrom: (1.1.552 shadow_robot_ethercat)
  • Revision ID: ugo@shadowrobot.com-20120808101721-lutmwmwmt06srqya
1.0.0 stable release for the etherCAT hardware

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
//
 
33
//! @file
 
34
//!
 
35
//! This file contains the definitions of the bootloading commands.
 
36
//!
 
37
//! @group
 
38
//
 
39
 
 
40
 
 
41
#ifndef BOOTLOADER_H_INCLUDED
 
42
#define BOOTLOADER_H_INCLUDED
 
43
 
 
44
//! These are the different commands the bootloader accepts.
 
45
//! 
 
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