A27系列优化I2C/RTC处理,新增版本A270Y
This commit is contained in:
23
A27-AMTLDR/Src/gpio.h
Normal file
23
A27-AMTLDR/Src/gpio.h
Normal file
@ -0,0 +1,23 @@
|
||||
#ifndef _GPIO_H
|
||||
#define _GPIO_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void gpio_request(unsigned gpio);
|
||||
|
||||
void gpio_direction_output(unsigned gpio, int value);
|
||||
|
||||
void gpio_direction_input(unsigned gpio);
|
||||
|
||||
void gpio_set_value(unsigned gpio, int value);
|
||||
|
||||
int gpio_get_value(unsigned gpio);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user