dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
common.h File Reference

Common definitions across the bootloaders. More...

Go to the source code of this file.

Macros

#define USB   0
 
#define SPI   1
 
#define DownloadDelay   100000
 
#define MAX_DEL_RETRYS   3
 
#define MAX_WRI_RETRYS   3
 

Enumerations

enum  DownloadAction { start, keepgoing }
 
enum  DFUStates {
  DFUidle, uploading, wrong_packet_received, too_many_packets,
  too_few_packets, Last_operation_Success, downloading, BLidle,
  Last_operation_failed, uploadingStarting, outsideDevCapabilities, CRC_Fail,
  failed_jump
}
 
enum  DFUCommands {
  Reserved, Req_Capabilities, Rep_Capabilities, EnterDFU,
  JumpFW, Reset, Abort_Operation, Upload,
  Op_END, Download_Req, Download, Status_Request,
  Status_Rep
}
 
enum  DeviceType { High_Density, Medium_Density }
 
enum  DFUTransfer { FW, Descript }
 
enum  DFUPort { Usb, Serial }
 
enum  DFUProgType { Self_flash, Remote_flash_via_spi }
 

Detailed Description

Common definitions across the bootloaders.

Author
The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
Tau Labs, http://taulabs.org, Copyright (C) 2012-2013
See Also
The GNU Public License (GPL) Version 3

Definition in file common.h.