Rev 587 | Rev 619 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 587 | Rev 606 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef _SPI_SLAVE_H |
1 | #ifndef _SPI_SLAVE_H |
2 | #define _SPI_SLAVE_H |
2 | #define _SPI_SLAVE_H |
Line 3... | Line 3... | ||
3 | 3 | ||
4 | #include "fifo.h" |
4 | #include "fifo.h" |
- | 5 | #include "gps.h" |
|
Line 5... | Line 6... | ||
5 | #include "gps.h" |
6 | #include "main.h" |
6 | 7 | ||
7 | #define SPEAK_ERR_CALIBARTION 1 |
8 | #define SPEAK_ERR_CALIBARTION 1 |
8 | #define SPEAK_ERR_RECEICER 2 |
9 | #define SPEAK_ERR_RECEICER 2 |
Line 177... | Line 178... | ||
177 | u8 MaxPWM; |
178 | u8 MaxPWM; |
178 | u8 State; |
179 | u8 State; |
179 | u8 NotReadyCnt; |
180 | u8 NotReadyCnt; |
180 | } __attribute__((packed)) Motor_t; |
181 | } __attribute__((packed)) Motor_t; |
Line 181... | Line 182... | ||
181 | 182 | ||
Line 182... | Line 183... | ||
182 | extern Motor_t Motor[12]; |
183 | extern Motor_t Motor[MAX_MOTORS]; |
183 | 184 | ||
184 | #define MOTOR_STATE_NEW_PROTOCOL_MASK 0x01 |
185 | #define MOTOR_STATE_NEW_PROTOCOL_MASK 0x01 |
185 | #define MOTOR_STATE_FAST_MODE 0x02 |
186 | #define MOTOR_STATE_FAST_MODE 0x02 |
186 | #define MOTOR_STATE_BL30 0x04 // extended Current measurement -> 200 = 20A 201 = 21A 255 = 75A (20+55) |
- | |
Line 187... | Line 187... | ||
187 | extern u8 Motor_Version[12]; // das kann nicht in die struct, weil der PC die Struktur bekommt |
187 | #define MOTOR_STATE_BL30 0x04 // extended Current measurement -> 200 = 20A 201 = 21A 255 = 75A (20+55) |
188 | 188 | extern u8 Motor_Version[MAX_MOTORS]; // das kann nicht in die struct, weil der PC die Struktur bekommt |
|
189 | 189 |