61-20210407华为海思Hi3516DV300的linux系统下控制GPIO口(标准linux模式点亮LED灯)
2021/4/7 15:13

https://xueqiu.com/7970718062/159110439
官井想开挖掘机
来自iPhone发布于2020-09-13 15:18
$润和软件(SZ300339)$

HiSpark AI Camera套件

l 支持鸿蒙OS、LiteOS、Linux系统,方便进行产品的原型验证和快速开发
l 板载海思Hi3516DV300芯片,内置双核Cortex-A7,最高运行评率900MHz,内置图像处理单元(ISP),内置H265/H264硬件编解码器,内置智能视频引擎(IVE),内置硬件安全引擎
l 主控芯片内置神经网络推理引擎(NNIE),8bit算力1Tops,可进行端侧AI计算
l 板载1G DDR3内存,最大传输速度1866Mbps
l 板载8G eMMC,最大传输速度
l 板载Hi3861 WiFi模组,支持IEEE 802.11 b/g/n,支持STA模式、AP模式
l 板载索尼IMX 335图像传感器,最大有效像素5.04M,视屏最高支持2592x1944@60fps

https://blog.csdn.net/cocoron/article/details/105704207
【海思篇】【Hi3516DV300】十三、添加GPIO管理接口和手动实现一个GPIO调试工具

通过/sys/class/gpio配置
#比如配置gpio0_4为输出,拉高
echo 4 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio4/direction
echo 1 > /sys/class/gpio/gpio4/value
echo 4 > /sys/class/gpio/unexport
(也就是GPIO口的编号是从0开始!)

1、找到开发板上的LED灯的GPIO号:
http://www.hihope.org/
江苏润和软件股份有限公司
http://www.hihope.org/download/download.aspx?mtt=12
HiSpark AI Camera 原理图.zip
HiSpark_AI_Hi3516D_Core_VER.B_NoValueSCH_0929.pdf

在WPS中搜索LED,很容易找到第12页的2个LED灯:
LED_light/GPIO2_3 绿色LED灯
Led_core/GPIO3_4  红色LED灯

根据经验,很容易知道每一组GPIO口有8个。
也就第0组的GPIO口是从GPIO0_0到GPIO0_7!

GPIO3_4的编号:3*8+4=28

GPIO2_3的编号:2*8+3=19

2、配置命令:
clk: Not disabling unused clocks
Waiting for root device /dev/mmcblk0p3...
mmc0: new HS200 MMC card at address 0001
mmc0: -524: cmdq: unable to set-up
mmcblk0: mmc0:0001 8GTF4R 7.28 GiB 
mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB
 mmcblk0: p1(uboot.bin) p2(kernel) p3(rootfs.ext4) p4(user)
EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:3.
devtmpfs: mounted
Freeing unused kernel memory: 1024K (c0800000 - c0900000)

_ _ _ _ _ _ _ _ _ _ _ _
            \  _  _   _  _ _ ___
            / /__/ \ |_/
           / __   /  -  _ ___
          / /  / /  / /
  _ _ _ _/ /  /  \_/  \_ ______
___________\___\__________________

[RCS]: /etc/init.d/S00devs
mknod: /dev/console: File exists
mknod: /dev/ttyAMA0: File exists
mknod: /dev/null: File exists
[RCS]: /etc/init.d/S01udev
random: udevd: uninitialized urandom read (16 bytes read)
udevd[89]: starting eudev-3.2.7
[RCS]: /etc/init.d/S80network
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Auto login as root ...
login[108]: root login on 'ttyS000'
Welcome to HiLinux.
None of nfsroot found in cmdline.
~ # hisi-femac 10010000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

~ # 
~ # 
~ # 
~ # random: fast init done
random: crng init done

~ # 
~ # 
~ # ls -l
total 0
~ # 
~ # pwd
/root
~ # 
~ # 
~ # cd /
/ # 
/ # pwd
/
/ # 
/ # 
/ # cd /sys
/sys # ls -l
total 0
drwxr-xr-x    2 root     root             0 Jan  1 06:00 block
drwxr-xr-x   19 root     root             0 Jan  1 04:12 bus
drwxr-xr-x   27 root     root             0 Jan  1 04:12 class
drwxr-xr-x    4 root     root             0 Jan  1 06:00 dev
drwxr-xr-x    5 root     root             0 Jan  1 04:12 devices
drwxr-xr-x    3 root     root             0 Jan  1 06:00 firmware
drwxr-xr-x    5 root     root             0 Jan  1 06:00 fs
drwxr-xr-x    7 root     root             0 Jan  1 06:00 kernel
drwxr-xr-x   44 root     root             0 Jan  1 06:00 module
drwxr-xr-x    2 root     root             0 Jan  1 06:00 power
/sys # 
/sys # 
/sys # cd class/
/sys/class # 
/sys/class # ls -l
total 0
drwxr-xr-x    2 root     root             0 Jan  1 04:12 bdi
drwxr-xr-x    2 root     root             0 Jan  1 04:12 block
drwxr-xr-x    2 root     root             0 Jan  1 04:12 bsg
drwxr-xr-x    2 root     root             0 Jan  1 04:12 gpio
drwxr-xr-x    2 root     root             0 Jan  1 04:12 graphics
drwxr-xr-x    2 root     root             0 Jan  1 04:12 i2c-dev
drwxr-xr-x    2 root     root             0 Jan  1 04:12 input
drwxr-xr-x    2 root     root             0 Jan  1 04:12 mdio_bus
drwxr-xr-x    2 root     root             0 Jan  1 04:12 mem
drwxr-xr-x    2 root     root             0 Jan  1 04:12 misc
drwxr-xr-x    2 root     root             0 Jan  1 04:12 mmc_host
drwxr-xr-x    2 root     root             0 Jan  1 04:12 net
drwxr-xr-x    2 root     root             0 Jan  1 04:12 phy
drwxr-xr-x    2 root     root             0 Jan  1 04:12 power_supply
drwxr-xr-x    2 root     root             0 Jan  1 04:12 rtc
drwxr-xr-x    2 root     root             0 Jan  1 04:12 scsi_device
drwxr-xr-x    2 root     root             0 Jan  1 04:12 scsi_disk
drwxr-xr-x    2 root     root             0 Jan  1 04:12 scsi_host
drwxr-xr-x    2 root     root             0 Jan  1 04:12 spi_master
drwxr-xr-x    2 root     root             0 Jan  1 04:12 spidev
drwxr-xr-x    2 root     root             0 Jan  1 04:12 tty
drwxr-xr-x    2 root     root             0 Jan  1 04:12 udc
drwxr-xr-x    2 root     root             0 Jan  1 04:12 vc
drwxr-xr-x    2 root     root             0 Jan  1 04:12 video4linux
drwxr-xr-x    2 root     root             0 Jan  1 04:12 vtconsole
/sys/class # 
/sys/class # 
/sys/class # cd gpio/
/sys/class/gpio # 
/sys/class/gpio # ls -l
total 0
--w-------    1 root     root          4096 Jan  1 04:12 export
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip0 -> ../../devices/platform/soc/120d0000.gpio_chip/gpio/gpiochip0
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip16 -> ../../devices/platform/soc/120d2000.gpio_chip/gpio/gpiochip16
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip24 -> ../../devices/platform/soc/120d3000.gpio_chip/gpio/gpiochip24
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip32 -> ../../devices/platform/soc/120d4000.gpio_chip/gpio/gpiochip32
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip40 -> ../../devices/platform/soc/120d5000.gpio_chip/gpio/gpiochip40
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip48 -> ../../devices/platform/soc/120d6000.gpio_chip/gpio/gpiochip48
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip56 -> ../../devices/platform/soc/120d7000.gpio_chip/gpio/gpiochip56
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip64 -> ../../devices/platform/soc/120d8000.gpio_chip/gpio/gpiochip64
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip72 -> ../../devices/platform/soc/120d9000.gpio_chip/gpio/gpiochip72
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip8 -> ../../devices/platform/soc/120d1000.gpio_chip/gpio/gpiochip8
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip80 -> ../../devices/platform/soc/120da000.gpio_chip/gpio/gpiochip80
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip88 -> ../../devices/platform/soc/120db000.gpio_chip/gpio/gpiochip88
--w-------    1 root     root          4096 Jan  1 04:12 unexport
/sys/class/gpio # 
/sys/class/gpio # 
/sys/class/gpio # echo 28 > export 
/sys/class/gpio # 
/sys/class/gpio # ls -l
total 0
--w-------    1 root     root          4096 Jan  1 06:00 export
lrwxrwxrwx    1 root     root             0 Jan  1 06:00 gpio28 -> ../../devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip0 -> ../../devices/platform/soc/120d0000.gpio_chip/gpio/gpiochip0
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip16 -> ../../devices/platform/soc/120d2000.gpio_chip/gpio/gpiochip16
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip24 -> ../../devices/platform/soc/120d3000.gpio_chip/gpio/gpiochip24
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip32 -> ../../devices/platform/soc/120d4000.gpio_chip/gpio/gpiochip32
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip40 -> ../../devices/platform/soc/120d5000.gpio_chip/gpio/gpiochip40
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip48 -> ../../devices/platform/soc/120d6000.gpio_chip/gpio/gpiochip48
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip56 -> ../../devices/platform/soc/120d7000.gpio_chip/gpio/gpiochip56
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip64 -> ../../devices/platform/soc/120d8000.gpio_chip/gpio/gpiochip64
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip72 -> ../../devices/platform/soc/120d9000.gpio_chip/gpio/gpiochip72
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip8 -> ../../devices/platform/soc/120d1000.gpio_chip/gpio/gpiochip8
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip80 -> ../../devices/platform/soc/120da000.gpio_chip/gpio/gpiochip80
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip88 -> ../../devices/platform/soc/120db000.gpio_chip/gpio/gpiochip88
--w-------    1 root     root          4096 Jan  1 04:12 unexport
/sys/class/gpio # 
/sys/class/gpio # 
/sys/class/gpio # cd gpio28/
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # 
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # ls -l
total 0
-rw-r--r--    1 root     root          4096 Jan  1 06:00 active_low
lrwxrwxrwx    1 root     root             0 Jan  1 06:00 device -> ../../../gpiochip3
-rw-r--r--    1 root     root          4096 Jan  1 06:00 direction
-rw-r--r--    1 root     root          4096 Jan  1 06:00 edge
drwxr-xr-x    2 root     root             0 Jan  1 06:00 power
lrwxrwxrwx    1 root     root             0 Jan  1 06:00 subsystem -> ../../../../../../../class/gpio
-rw-r--r--    1 root     root          4096 Jan  1 06:00 uevent
-rw-r--r--    1 root     root          4096 Jan  1 06:00 value
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # 
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # cat directi
on 
in
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # 
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # echo out > 
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # echo out > 
direction 
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # 
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # cat directi
on 
out
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # 
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # cat value 
0
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # 
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # echo 1 > va
lue
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # 
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # 
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # 
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # 
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # echo 0 > va
lue
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 #

/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # 
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # cd /sys/cla
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # cd /sys/cla
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # cd /sys/cla
ss/gpio/
/sys/class/gpio # 
/sys/class/gpio # 
/sys/class/gpio # ls -l
total 0
--w-------    1 root     root          4096 Jan  1 06:00 export
lrwxrwxrwx    1 root     root             0 Jan  1 06:00 gpio28 -> ../../devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip0 -> ../../devices/platform/soc/120d0000.gpio_chip/gpio/gpiochip0
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip16 -> ../../devices/platform/soc/120d2000.gpio_chip/gpio/gpiochip16
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip24 -> ../../devices/platform/soc/120d3000.gpio_chip/gpio/gpiochip24
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip32 -> ../../devices/platform/soc/120d4000.gpio_chip/gpio/gpiochip32
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip40 -> ../../devices/platform/soc/120d5000.gpio_chip/gpio/gpiochip40
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip48 -> ../../devices/platform/soc/120d6000.gpio_chip/gpio/gpiochip48
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip56 -> ../../devices/platform/soc/120d7000.gpio_chip/gpio/gpiochip56
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip64 -> ../../devices/platform/soc/120d8000.gpio_chip/gpio/gpiochip64
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip72 -> ../../devices/platform/soc/120d9000.gpio_chip/gpio/gpiochip72
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip8 -> ../../devices/platform/soc/120d1000.gpio_chip/gpio/gpiochip8
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip80 -> ../../devices/platform/soc/120da000.gpio_chip/gpio/gpiochip80
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip88 -> ../../devices/platform/soc/120db000.gpio_chip/gpio/gpiochip88
--w-------    1 root     root          4096 Jan  1 04:12 unexport
/sys/class/gpio # 
/sys/class/gpio # 
/sys/class/gpio # 
/sys/class/gpio # echo 19 > export 
/sys/class/gpio # 
/sys/class/gpio # ls -l
total 0
--w-------    1 root     root          4096 Jan  1 06:04 export
lrwxrwxrwx    1 root     root             0 Jan  1 06:04 gpio19 -> ../../devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19
lrwxrwxrwx    1 root     root             0 Jan  1 06:00 gpio28 -> ../../devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip0 -> ../../devices/platform/soc/120d0000.gpio_chip/gpio/gpiochip0
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip16 -> ../../devices/platform/soc/120d2000.gpio_chip/gpio/gpiochip16
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip24 -> ../../devices/platform/soc/120d3000.gpio_chip/gpio/gpiochip24
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip32 -> ../../devices/platform/soc/120d4000.gpio_chip/gpio/gpiochip32
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip40 -> ../../devices/platform/soc/120d5000.gpio_chip/gpio/gpiochip40
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip48 -> ../../devices/platform/soc/120d6000.gpio_chip/gpio/gpiochip48
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip56 -> ../../devices/platform/soc/120d7000.gpio_chip/gpio/gpiochip56
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip64 -> ../../devices/platform/soc/120d8000.gpio_chip/gpio/gpiochip64
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip72 -> ../../devices/platform/soc/120d9000.gpio_chip/gpio/gpiochip72
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip8 -> ../../devices/platform/soc/120d1000.gpio_chip/gpio/gpiochip8
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip80 -> ../../devices/platform/soc/120da000.gpio_chip/gpio/gpiochip80
lrwxrwxrwx    1 root     root             0 Jan  1 04:12 gpiochip88 -> ../../devices/platform/soc/120db000.gpio_chip/gpio/gpiochip88
--w-------    1 root     root          4096 Jan  1 04:12 unexport
/sys/class/gpio # 
/sys/class/gpio # 
/sys/class/gpio # cd gpio19/
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # 
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # ls -l
total 0
-rw-r--r--    1 root     root          4096 Jan  1 06:04 active_low
lrwxrwxrwx    1 root     root             0 Jan  1 06:04 device -> ../../../gpiochip2
-rw-r--r--    1 root     root          4096 Jan  1 06:04 direction
-rw-r--r--    1 root     root          4096 Jan  1 06:04 edge
drwxr-xr-x    2 root     root             0 Jan  1 06:04 power
lrwxrwxrwx    1 root     root             0 Jan  1 06:04 subsystem -> ../../../../../../../class/gpio
-rw-r--r--    1 root     root          4096 Jan  1 06:04 uevent
-rw-r--r--    1 root     root          4096 Jan  1 06:04 value
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # 
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # cat directi
on 
in
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # 
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # echo out > 
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # echo out > 
direction 
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # 
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # cat directi
on 
out
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # 
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # cat value 
0
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # 
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # echo 1 > va
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # echo 1 > va
lue 
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # 
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # 
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # cd ../gpio1
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # cd /sys/cla
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # cd /sys/cla
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # cd /sys/cla
/sys/devices/platform/soc/120d2000.gpio_chip/gpiochip2/gpio/gpio19 # cd /sys/cla
ss/gpio/gpio28/
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # 
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # echo 1 > va
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # echo 1 > va
lue 
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 # 
/sys/devices/platform/soc/120d3000.gpio_chip/gpiochip3/gpio/gpio28 #

参考资料:
(linux系统)
https://blog.csdn.net/qq_29858649/article/details/115346735
HI3516DV300 GPIO操作

https://blog.csdn.net/u012478275/article/details/94125742
海思芯片上GPIO操作

(鸿蒙系统)
https://bbs.elecfans.com/jishu_1990090_1_1.html
[讨论] 手把手教你如何烧录Hi3516DV300鸿蒙开发板(HiSpark AI Camera)!

https://bbs.elecfans.com/jishu_1998420_1_1.html
[文章] 【HarmonyOS HiSpark AI Camera试用连载 】终于把灯点亮了

https://bbs.elecfans.com/jishu_2012800_1_1.html
[资料] Harmony应用编程之GPIO编程踩坑小记

https://harmonyos.51cto.com/posts/2752
#2020征文-开发板#【Hi3516DV300试用 】GPIO编程踩坑小记

https://bbs.elecfans.com/jishu_1996485_1_1.html
[经验] 【HarmonyOS HiSpark Wi-Fi IoT 套件】第四篇:驱动LED灯

https://bbs.elecfans.com/jishu_2004129_1_1.html
[经验] 【HarmonyOS HiSpark Wi-Fi IoT套件】鸿蒙HiSpark Wi-Fi IoT开发套件试用04(点亮LED灯)

https://bbs.elecfans.com/jishu_2007024_1_1.html
[经验] 【HarmonyOS HiSpark Wi-Fi IoT 套件】LED灯闪烁

https://bbs.elecfans.com/jishu_2007043_1_1.html
[讨论] 【HarmonyOS HiSpark Wi-Fi IoT 套件】GPIO操作体验

https://bbs.elecfans.com/jishu_1998959_1_1.html
[经验] 【HarmonyOS HiSpark Wi-Fi IoT 套件】3-编写简单GPIO程序

https://zhuanlan.zhihu.com/p/257938114
在Linux环境下,Hi3516DV300开发板搭载鸿蒙OS实现一个简单的Helloworld程序

61-20210407华为海思Hi3516DV300的linux系统下控制GPIO口(标准linux模式点亮LED灯)相关推荐

  1. 12-20210225华为海思Hi3518EV300在鸿蒙系统下测试WIFI(AP+STATION模式)

    12-20210225华为海思Hi3518EV300在鸿蒙系统下测试WIFI(AP+STATION模式) 2021/2/25 10:45 [HarmonyOS HiSpark_IPC_DIY开发套件] ...

  2. 11-20210225华为海思Hi3518EV300在鸿蒙系统下测试摄像头(拍照+录像)

    11-20210225华为海思Hi3518EV300在鸿蒙系统下测试摄像头(拍照+录像) 2021/2/25 9:37 将Hi3518EV300在鸿蒙系统下配置为UVC模式,原厂(华为海思/江苏润和) ...

  3. 52-20210322华为海思Hi3516DV300的linux系统编译(eMMC模式)1

    52-20210322华为海思Hi3516DV300的linux系统编译(eMMC模式) 2021/3/22 18:00 请严重注意: 本文所使用的的SDK是:Hi3516CV500R001C02SP ...

  4. 51-20210316华为海思Hi3516DV300的linux系统编译1(SPI模式)

    51-20210316华为海思Hi3516DV300的linux系统编译 2021/3/16 10:42 https://xueqiu.com/7970718062/159110439 官井想开挖掘机 ...

  5. 51-20210316华为海思Hi3516DV300的linux系统编译2(SPI模式)

    51-20210316华为海思Hi3516DV300的linux系统编译 2021/3/16 10:42 https://xueqiu.com/7970718062/159110439 官井想开挖掘机 ...

  6. 56-20210402华为海思Hi3516DV300的linux系统下读取TF卡(eMMC模式)

    56-20210402华为海思Hi3516DV300的linux系统下读取TF卡(eMMC模式) 2021/4/2 15:02 https://xueqiu.com/7970718062/159110 ...

  7. 05-20210301在WIN10下通过串口给华为海思Hi3516DV300刷机(鸿蒙系统)

    05-20210301在WIN10下通过串口给华为海思Hi3516DV300刷机(鸿蒙系统) 2021/3/1 15:11 (!!!!请严重注意,串口烧录需要花很久很久的时间:2小时6分41秒.) h ...

  8. 07-20210305在WIN10下通过USB口给华为海思Hi3516DV300刷机(鸿蒙系统)

    07-20210305在WIN10下通过USB口给华为海思Hi3516DV300刷机(鸿蒙系统) 2021/3/5 17:26 https://blog.csdn.net/cocoron/articl ...

  9. 08-20210305在WIN10下通过网口给华为海思Hi3516DV300刷机(鸿蒙系统)

    08-20210301在WIN10下通过网口给华为海思Hi3516DV300刷机(鸿蒙系统) 2021/3/5 11:03 https://bbs.elecfans.com/jishu_2002000 ...

最新文章

  1. oracle union 最多_用户来稿:我就是那个在优买计划赚钱最多的男人
  2. MySQL中的数据查询
  3. Python之打造专属Python开发者的完美终端工具Rich
  4. struts2下面如何同时使用servlet,就是如何实现struts与servlet共存
  5. SVM — 机器学习面试
  6. Android Framework 全面分析 FallbackHome
  7. JavaSE基础———StringBuffer StringBuilder Arrays和基本数据类型包装类
  8. 闭关修炼,看了老大的博客,才发现自己是多么的技术低,原来我就达到06年的他...
  9. freeSWITCH之安装
  10. gdb 查看是否 栈溢出_GDB调试之二栈溢出
  11. linux u盘启动制作教程,cdlinux u盘启动制作教程
  12. python中判断小写字符_Python islower()函数 判断字符串中字符是否都为小写
  13. 邯郸百亿斤粮食生产 国稻种芯·中国水稻节:河北大市粮食经
  14. 提高笔记本无线网络速度
  15. pip下载太慢?聪明人都这样
  16. 定格动画运用的计算机技术是,定格动画中材料的运用.pdf
  17. python最小二乘法_最小二乘法(least sqaure method)
  18. 图片批量旋转与翻转工具
  19. C# 加减乘除计算器
  20. 游戏模块分析总结(4)之系统篇

热门文章

  1. 使用ajax爬取网站图片()
  2. 别吹虚了,副业也需要刚
  3. asp.net物流跟踪系统VS开发sqlserver数据库web结构C#编程
  4. Verilog语法之参数传递
  5. eachrt 雷达图背景颜色填充,线条颜色自定义【在线调试】
  6. 安全牛发布最新中国网安全景图 边界无限RASP表现抢眼成功入围
  7. Java对象中实例数据发生的间隙填充alignment/padding gap条件是什么?
  8. D-Link三层交换机企业部署VLAN实例
  9. [BZOJ3118]Orz the MST(单纯形)
  10. 测试面膜真假软件,Dr.jart蒂佳婷药丸面膜真假辨别对比方法