|
|
|
@ -233,7 +233,9 @@ extern int pwmmode;
|
|
|
|
|
extern unsigned int readR(unsigned int addr); |
|
|
|
|
extern void writeR(unsigned int val, unsigned int addr); |
|
|
|
|
extern int OrangePi_set_gpio_mode(int pin, int mode); |
|
|
|
|
#if !(defined CONFIG_ORANGEPI_RK3399 || defined CONFIG_ORANGEPI_4 || defined CONFIG_ORANGEPI_R1PLUS || CONFIG_ORANGEPI_2G_IOT) |
|
|
|
|
extern int OrangePi_set_gpio_alt(int pin, int mode); |
|
|
|
|
#endif |
|
|
|
|
extern int OrangePi_get_gpio_mode(int pin); |
|
|
|
|
extern int isOrangePi_2G_IOT(void); |
|
|
|
|
extern int isOrangePi(void); |
|
|
|
|