gpio
来源:互联网 发布:python webpdf 编辑:程序博客网 时间:2024/05/09 11:00
struct gs270_config {
char name[32];
user_gpio_set_t power_io;
user_gpio_set_t reset_io;
user_gpio_set_t wake_io;
};
static script_gpio_set_t gs270_power;
static script_gpio_set_t gs270_standby;
static script_gpio_set_t gs270_int;
static int fetch_sysconfig_para(void)
{
ret = script_parser_fetch_ex("2g_para", "2g_power",(int *)&gs270_power, &type, sizeof(gs270_power)/sizeof(__u32));
ret = script_parser_fetch_ex("2g_para", "2g_wakeup",(int *)&gs270_standby, &type, sizeof(gs270_standby)/sizeof(__u32));
ret = script_parser_fetch_ex("2g_para", "2g_int",(int *)&gs270_int, &type, sizeof(gs270_int)/sizeof(__u32));
//pgio赋值给全局变量
gs270_power_handler = gpio_request_ex("2g_para", "2g_poweron");
gs270_int_handler = gpio_request_ex("2g_para", "2g_int");
gs270_standby_handler = gpio_request_ex("2g_para", "2g_wakeup");
}
if(gs270.power_io.port == 0xffff) {
axp_gpio_set_io(gs270.power_io.port_num, 1);
axp_gpio_set_value(gs270.power_io.port_num,0);
gpio申请、设置、赋值、释放
- gpio
- gpio
- GPIO
- GPIO
- GPIO
- GPIO
- GPIO
- GPIO
- GPIO
- GPIO
- GPIO
- gpio
- GPIO
- gpio
- GPIO
- gpio
- GPIO
- gpio
- 图两点间的最短路径,所有路径算法C语言实现
- PHP如何实现整除
- FPGA基于CORDIC算法的求平方实现
- 自己写的一个tableView自定义索引栏
- 简单工厂模式(一)
- gpio
- 黑马程序员 面对对象(一)
- JAVA编程规范
- android 多线程断点续传下载
- 【2035 人见人爱A^B】
- U-Boot移植(二)——U-Boot编译过程分析(2)
- test1
- Gvim73配置文件介绍
- C# HttpWebRequest 绝技