Rev 139 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 139 | Rev 141 | ||
---|---|---|---|
1 | #ifndef _TIMER2_H |
1 | #ifndef _TIMER2_H |
2 | #define _TIMER2_H |
2 | #define _TIMER2_H |
3 | 3 | ||
4 | typedef struct |
4 | typedef struct |
5 | { |
5 | { |
6 | u8 Refresh; |
6 | u8 Refresh; |
7 | u8 CompInvert; |
7 | u8 CompInvert; |
8 | u8 NickControl; |
8 | u8 NickControl; |
9 | u8 NickComp; |
9 | u8 NickComp; |
10 | u8 NickMin; |
10 | u8 NickMin; |
11 | u8 NickMax; |
11 | u8 NickMax; |
12 | u8 RollControl; |
12 | u8 RollControl; |
13 | u8 RollComp; |
13 | u8 RollComp; |
14 | u8 RollMin; |
14 | u8 RollMin; |
15 | u8 RollMax; |
15 | u8 RollMax; |
16 | } __attribute__((packed)) ServoParams_t; |
16 | } __attribute__((packed)) ServoParams_t; |
17 | 17 | ||
18 | 18 | ||
19 | extern ServoParams_t ServoParams; |
19 | extern volatile ServoParams_t ServoParams; |
20 | 20 | ||
21 | void TIMER2_Init(void); |
21 | void TIMER2_Init(void); |
22 | void TIMER2_Deinit(void); |
22 | void TIMER2_Deinit(void); |
23 | 23 | ||
24 | #endif // _TIMER2_H |
24 | #endif // _TIMER2_H |
25 | 25 |