gpio_bcm963xx.h
来自「Self-made library for GPIOs on BCM6348」· C头文件 代码 · 共 22 行
H
22 行
/* * GPIO userspace routines for BCM963xx boards * Copyright (C) 2008 Francesco Gugliuzza * This file is under copyright of Francesco Gugliuzza * and cannot be redistributed without written permission. *//* These are return values from GPIO routines, in case of an error. */#define GPIO_INVALID -1#define GPIO_INVALID_DIR -2#define GPIO_INVALID_VALUE -3#define GPIO_MAP_FAILED -4/* Gpio direction is 0 for output and 1 for input, for compatibility with OpenWRT kernel GPIO routines. */int gpio_set_dir(int gpio, int dir);/* Value: 0 for low and 1 for high */int gpio_set(int gpio, int value);/* Return value: as above */int gpio_get(int gpio);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?