mirror of
https://github.com/im-tomu/foboot.git
synced 2024-09-20 19:00:09 +00:00
3d6acaf51e
Now that we have SPI and USB both working, we can start to close the loop and get DFU working. Signed-off-by: Sean Cross <sean@xobs.io>
12 lines
218 B
C
12 lines
218 B
C
#ifndef _SPI_GPIO_H
|
|
#define _SPI_GPIO_H
|
|
|
|
#define PI_OUTPUT 1
|
|
#define PI_INPUT 0
|
|
#define PI_ALT0 PI_INPUT
|
|
|
|
void gpioSetMode(int pin, int mode);
|
|
void gpioWrite(int pin, int val);
|
|
int gpioRead(int pin);
|
|
|
|
#endif |