dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
serial_4way.h
Go to the documentation of this file.
1 /*
2  * This file is part of Cleanflight.
3  *
4  * Cleanflight is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * Cleanflight is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
16  * Author: 4712
17 */
18 #pragma once
19 
20 #ifndef DRONIN_TARGET
21 #include "drivers/io_types.h"
22 #endif
23 #include "serial_4way_impl.h"
24 
25 #define USE_SERIAL_4WAY_BLHELI_BOOTLOADER
26 #define USE_SERIAL_4WAY_SK_BOOTLOADER
27 
28 #define imC2 0
29 #define imSIL_BLB 1
30 #define imATM_BLB 2
31 #define imSK 3
32 #define imARM_BLB 4
33 
34 extern uint8_t selected_esc;
35 
36 extern ioMem_t ioMem;
37 
38 typedef union __attribute__ ((packed)) {
39  uint8_t bytes[2];
40  uint16_t word;
42 
43 typedef union __attribute__ ((packed)) {
44  uint8_t bytes[4];
45  uint16_t words[2];
46  uint32_t dword;
48 
49 //extern uint8_32_u DeviceInfo;
50 
51 bool isMcuConnected(void);
52 uint8_t esc4wayInit(void);
53 struct serialPort_s;
54 void esc4wayProcess(struct serialPort_s *mspPort);
55 void esc4wayRelease(void);
uint8_t selected_esc
uint8_t esc4wayInit(void)
uint8_32_u
Definition: serial_4way.h:47
uint8_t bytes[2]
Definition: storm32bgc.c:156
bool isMcuConnected(void)
void esc4wayRelease(void)
uint8_16_u
Definition: serial_4way.h:41
ioMem_t ioMem
void esc4wayProcess(struct serialPort_s *mspPort)