Alex Borisevich
/
OpenBCI
PlatformGPIO.h@0:2cb59ea20ace, 2016-12-04 (annotated)
- Committer:
- akpc806a
- Date:
- Sun Dec 04 03:38:44 2016 +0000
- Revision:
- 0:2cb59ea20ace
- Child:
- 1:4683702d7ad8
OpenBCI 32bit board variation with STM32L476 mircocontroller and mbed support
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
akpc806a | 0:2cb59ea20ace | 1 | // interface for SPI implemented with mbed framework |
akpc806a | 0:2cb59ea20ace | 2 | |
akpc806a | 0:2cb59ea20ace | 3 | #ifndef __PlatformGPIO__ |
akpc806a | 0:2cb59ea20ace | 4 | #define __PlatformGPIO__ |
akpc806a | 0:2cb59ea20ace | 5 | |
akpc806a | 0:2cb59ea20ace | 6 | #include "mbed.h" |
akpc806a | 0:2cb59ea20ace | 7 | |
akpc806a | 0:2cb59ea20ace | 8 | #define pinMode(x,y) |
akpc806a | 0:2cb59ea20ace | 9 | |
akpc806a | 0:2cb59ea20ace | 10 | |
akpc806a | 0:2cb59ea20ace | 11 | #define SD_SS PA_3 |
akpc806a | 0:2cb59ea20ace | 12 | #define BOARD_ADS PA_0 |
akpc806a | 0:2cb59ea20ace | 13 | #define DAISY_ADS PA_2 |
akpc806a | 0:2cb59ea20ace | 14 | #define LIS3DH_SS PC_5 |
akpc806a | 0:2cb59ea20ace | 15 | #define ADS_RST PA_1 |
akpc806a | 0:2cb59ea20ace | 16 | |
akpc806a | 0:2cb59ea20ace | 17 | #define LIS3DH_DRDY PB_10 |
akpc806a | 0:2cb59ea20ace | 18 | #define ADS_DRDY PC_3 |
akpc806a | 0:2cb59ea20ace | 19 | |
akpc806a | 0:2cb59ea20ace | 20 | void digitalWrite(int pin, unsigned char value); |
akpc806a | 0:2cb59ea20ace | 21 | unsigned char digitalRead(int pin); |
akpc806a | 0:2cb59ea20ace | 22 | |
akpc806a | 0:2cb59ea20ace | 23 | #endif |