Rev 1910 | Rev 2102 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1910 | Rev 2099 | ||
---|---|---|---|
1 | #ifndef _TIMER2_H |
1 | #ifndef _TIMER2_H |
2 | #define _TIMER2_H |
2 | #define _TIMER2_H |
3 | 3 | ||
4 | #include <inttypes.h> |
4 | #include <inttypes.h> |
5 | - | ||
6 | void timer2_init(void); |
- | |
7 | - | ||
8 | typedef struct { |
5 | |
9 | uint16_t SetPoint; // written by attitude controller |
- | |
10 | }__attribute__((packed)) OutputData_t; |
- | |
11 | - | ||
12 | #define MAX_OUTPUTS 8 |
6 | extern volatile int16_t ServoNickValue; |
- | 7 | extern volatile int16_t ServoRollValue; |
|
13 | extern OutputData_t outputs[MAX_OUTPUTS]; |
8 | |
14 | 9 | void timer2_init(void); |
|
15 | #endif //_TIMER2_H |
10 | #endif //_TIMER2_H |
16 | 11 | ||
17 | 12 |