Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
tacho_mb.h
Go to the documentation of this file.
1 #ifndef TACHO_MB_H
2 #define TACHO_MB_H
3 
4 #include "std.h"
5 
6 extern void tacho_mb_init(void);
7 
8 extern uint32_t t_duration;
9 
10 #define TACHO_MB_ISR() { \
11  static uint32_t tmb_last; \
12  uint32_t t_now = T0CR0; \
13  t_duration = t_now - tmb_last; \
14  tmb_last = t_now; \
15  LED_TOGGLE(1); \
16  }
17 
18 #endif /* TACHO_MB_H */
unsigned long uint32_t
Definition: types.h:18
void tacho_mb_init(void)
Definition: tacho_mb.c:12
uint32_t t_duration
Definition: tacho_mb.c:5