Searched refs:GPIO_NUM (Results 1 – 8 of 8) sorted by relevance
23 #define MPP_REG_NUM(GPIO_NUM) (GPIO_NUM / 8) argument24 #define MPP_MASK(GPIO_NUM) (0xf << 4 * (GPIO_NUM - \ argument25 (MPP_REG_NUM(GPIO_NUM) * 8)));26 #define GPP_REG_NUM(GPIO_NUM) (GPIO_NUM / 32) argument27 #define GPP_MASK(GPIO_NUM) (1 << GPIO_NUM % 32) argument
246 #define MPP_REG_NUM(GPIO_NUM) (GPIO_NUM / 8) argument247 #define MPP_MASK(GPIO_NUM) (0xf << 4 * (GPIO_NUM - \ argument248 (MPP_REG_NUM(GPIO_NUM) * 8)));249 #define GPP_REG_NUM(GPIO_NUM) (GPIO_NUM / 32) argument250 #define GPP_MASK(GPIO_NUM) (1 << GPIO_NUM % 32) argument
37 GPIO_NUM=$(get_gpio_num "$1")38 echo "$GPIO_NUM" > /sys/class/gpio/export39 cat /sys/class/gpio/gpio"$GPIO_NUM"/value40 echo "$GPIO_NUM" > /sys/class/gpio/unexport
4 GPIO_NUM=$((GPIO_BASE + 24 + 3))6 echo 1 > /sys/class/gpio/gpio${GPIO_NUM}/value8 echo 0 > /sys/class/gpio/gpio${GPIO_NUM}/value
59 GPIO_NUM=$(get_gpio_num "$1")60 echo "$GPIO_NUM" > /sys/class/gpio/export64 if ! cat /sys/class/gpio/gpio"$GPIO_NUM"/value 2> /dev/null ; then67 echo "$GPIO_NUM" > /sys/class/gpio/unexport
36 u32 num = GPIO_NUM(pin); in sunxi_gpio_output()54 u32 num = GPIO_NUM(pin); in sunxi_gpio_input()172 u32 num = GPIO_NUM(offset); in sunxi_gpio_direction_output()183 u32 num = GPIO_NUM(offset); in sunxi_gpio_get_value()196 u32 num = GPIO_NUM(offset); in sunxi_gpio_set_value()
81 #define GPIO_NUM(pin) ((pin) & 0x1f) macro