Rev 1 | Rev 41 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 27 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef _SPI_H |
1 | #ifndef _SPI_H |
2 | #define _SPI_H |
2 | #define _SPI_H |
Line 3... | Line 3... | ||
3 | 3 | ||
Line 4... | Line -... | ||
4 | #define SPI_PROTOCOL_COMP 1 |
- | |
5 | 4 | #define SPI_PROTOCOL_COMP 1 |
|
Line 6... | Line 5... | ||
6 | 5 | ||
7 | #define SS_PIN GPIO_ReadBit(GPIO2, GPIO_Pin_7) |
6 | #define SS_PIN GPIO_ReadBit(GPIO2, GPIO_Pin_7) |
8 | 7 | ||
9 | // IMPORTANT: no syncbytes in structure ! |
8 | // IMPORTANT: no syncbytes in structure ! |
- | 9 | #define SPI_CMD_USER 10 |
|
Line 10... | Line 10... | ||
10 | #define SPI_CMD_USER 10 |
10 | #define SPI_CMD_STICK 11 |
11 | #define SPI_CMD_STICK 11 |
11 | #define SPI_CMD_CAL_COMPASS 12 |
12 | #define SPI_CMD_CAL_COMPASS 12 |
12 | #define SPI_CMD_PARAMETER1 13 |
13 | 13 |