| Rev 2764 | Rev 2765 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | #include <main.h> |
1 | #include <main.h> |
| 2 | |
2 | |
| - | 3 | /* |
|
| - | 4 | MPL115A1 SDN - +5V (always power on) |
|
| - | 5 | MPL115A1 CSN - PIN_C2 |
|
| - | 6 | MPL115A1 SDO - PIN_C4 (twisted?) |
|
| - | 7 | MPL115A1 SDI - PIN_C5 (twisted?) |
|
| - | 8 | MPL115A1 SCK - PIN_C3 |
|
| - | 9 | MPL115A1 GND - GND |
|
| - | 10 | MPL115A1 VDD - +5V |
|
| - | 11 | */ |
|
| - | 12 | |
|
| 3 | #define CSN_SPI PIN_C2 |
13 | #define CSN_SPI PIN_C2 |
| 4 | int8 address, uiTadc, data ; |
14 | int8 address, uiTadc, data ; |
| 5 | |
15 | |
| 6 | |
16 | |
| 7 | // SPI mode definitions. |
17 | // SPI mode definitions. |