Paparazzi UAS
v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
Paparazzi UAS
Style Guides
Onboard Modules
Paparazzi Messages
Paparazzi Technical Primers
Math library
CATIA
Todo List
Bibliography
Modules
Namespace Members
Data Structures
Files
File List
Globals
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
ppm_arch.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2010-2014 The Paparazzi Team
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
*/
20
28
#ifndef PPM_ARCH_H
29
#define PPM_ARCH_H
30
31
32
#include "
LPC21xx.h
"
33
#include BOARD_CONFIG
34
35
#include "
mcu_periph/sys_time.h
"
36
43
#define RC_PPM_TICKS_OF_USEC(_v) cpu_ticks_of_usec(_v)
44
#define RC_PPM_SIGNED_TICKS_OF_USEC(_v) signed_cpu_ticks_of_usec(_v)
45
#define USEC_OF_RC_PPM_TICKS(_v) usec_of_cpu_ticks(_v)
46
47
#define PPM_IT PPM_CRI
48
49
#define PPM_ISR() { \
50
uint32_t now = PPM_CR; \
51
ppm_decode_frame(now); \
52
}
53
54
#ifdef USE_PPM_RSSI_GPIO
55
#define RssiValid() (bit_is_set(PPM_RSSI_IOPIN, PPM_RSSI_PIN) == PPM_RSSI_VALID_LEVEL)
56
#endif
57
58
59
#endif
/* PPM_ARCH_H */
sys_time.h
Architecture independent timing functions.
LPC21xx.h
sw
airborne
arch
lpc21
subsystems
radio_control
ppm_arch.h
Generated on Sat Feb 9 2019 06:43:44 for Paparazzi UAS by
1.8.8