Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
spektrum_soft_bind_fbw.c
Go to the documentation of this file.
1 /*
2  * Copyright (C) Kevin van Hecke
3  *
4  * This file is part of paparazzi
5  *
6  * paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, see
18  * <http://www.gnu.org/licenses/>.
19  */
28 #include "mcu.h"
30 #include "mcu_periph/sys_time_arch.h"
31 
32 #include "mcu_periph/gpio.h"
33 
34 #ifdef RADIO_CONTROL_BIND_IMPL_FUNC
36 #endif
37 
39 {
40 
41 }
42 
44 {
45 
46  //power cycle the spektrum
48  sys_time_usleep(100000);
50 
51  //put to bind mode
52  RADIO_CONTROL_BIND_IMPL_FUNC(); //basically = radio_control_spektrum_try_bind()
53 
54  SpektrumUartInit();
55 
56 }
void sys_time_usleep(uint32_t us)
sys_time_usleep(uint32_t us)
Some architecture independent helper functions for GPIOs.
Inter-MCU on FlyByWire side.
Arch independent mcu ( Micro Controller Unit ) utilities.
#define RADIO_CONTROL_POWER_ON
Definition: opa_ftd_1.0.h:151
#define RADIO_CONTROL_POWER_PIN
Definition: opa_ftd_1.0.h:150
#define RADIO_CONTROL_POWER_PORT
Definition: opa_ftd_1.0.h:149
#define RADIO_CONTROL_POWER_OFF
Definition: opa_ftd_1.0.h:152
Generic interface for radio control modules.
Radio control spektrum interface.
void received_spektrum_soft_bind(void)
void spektrum_soft_bind_init(void)