Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
tacho_mb.c
Go to the documentation of this file.
1 #include "tacho_mb.h"
2 
3 #include "LPC21xx.h"
4 
6 
7 /* INPUT CAPTURE CAP0.0 on P0.22*/
8 #define TACHO_MB_PINSEL PINSEL1
9 #define TACHO_MB_PINSEL_VAL 0x02
10 #define TACHO_MB_PINSEL_BIT 12
11 
12 void tacho_mb_init(void)
13 {
14  /* select pin for capture */
16  /* enable capture 0.2 on falling edge + trigger interrupt */
18 }
#define T0CCR
Definition: LPC21xx.h:60
void tacho_mb_init(void)
Definition: tacho_mb.c:12
#define TCCR_CR0_F
Definition: lpcTMR.h:135
#define TACHO_MB_PINSEL
Definition: tacho_mb.c:8
#define TACHO_MB_PINSEL_VAL
Definition: tacho_mb.c:9
#define TCCR_CR0_I
Definition: lpcTMR.h:136
unsigned long uint32_t
Definition: types.h:18
#define TACHO_MB_PINSEL_BIT
Definition: tacho_mb.c:10
uint32_t t_duration
Definition: tacho_mb.c:5