Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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
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.
uint16_t foo
Definition main_demo5.c:58
Arch independent mcu ( Micro Controller Unit ) utilities.
#define RADIO_CONTROL_POWER_ON
#define RADIO_CONTROL_POWER_PIN
#define RADIO_CONTROL_POWER_PORT
#define RADIO_CONTROL_POWER_OFF
Generic interface for radio control modules.
Radio control spektrum interface.
void received_spektrum_soft_bind(void)
void spektrum_soft_bind_init(void)