2 ******************************************************************************
5 * @author The LibrePilot Project, http://www.librepilot.org Copyright (C) 2017.
6 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
8 * @see The GNU Public License (GPL) Version 3
10 *****************************************************************************/
12 * This program 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 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 * You should have received a copy of the GNU General Public License along
23 * with this program; if not, write to the Free Software Foundation, Inc.,
24 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 /* Define to prevent recursive inclusion -------------------------------------*/
31 /* Includes ------------------------------------------------------------------*/
32 /* Exported types ------------------------------------------------------------*/
37 /**************************************************/
39 /**************************************************/
44 wrong_packet_received
, // 2
45 too_many_packets
, // 3
47 Last_operation_Success
, // 5
50 Last_operation_failed
, // 8
51 uploadingStarting
, // 9
52 outsideDevCapabilities
, // 10
57 /**************************************************/
59 /**************************************************/
62 Req_Capabilities
, // 1
63 Rep_Capabilities
, // 2
78 High_Density
, Medium_Density
80 /**************************************************/
81 /* OP_DFU transfer types */
82 /**************************************************/
88 /**************************************************/
89 /* OP_DFU transfer port */
90 /**************************************************/
96 /**************************************************/
97 /* OP_DFU programable programable HW types */
98 /**************************************************/
104 /**************************************************/
105 /* OP_DFU programable sources */
106 /**************************************************/
110 #define DownloadDelay 100000
112 #define MAX_DEL_RETRYS 3
113 #define MAX_WRI_RETRYS 3
116 uint8_t programmingType
;
117 uint8_t readWriteFlags
;
118 uint32_t startOfUserCode
;
120 uint8_t sizeOfDescription
;
127 /* Exported constants --------------------------------------------------------*/
128 /* Exported macro ------------------------------------------------------------*/
129 /* Exported define -----------------------------------------------------------*/
134 /* Exported functions ------------------------------------------------------- */
135 void processComand(uint8_t *Receive_Buffer
);
136 void DataDownload(DownloadAction
);
138 #endif /* __OP_DFU_H */
140 /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/