Change GPIO according XM EV300 configuration

pull/21/head
Dmitry Ilyin 2021-04-27 13:44:57 +03:00
parent a61663b9bb
commit 8157fc325d
1 changed files with 9 additions and 4 deletions

View File

@ -1,7 +1,12 @@
#!/bin/sh #!/bin/sh
#GPIO1_0 -> GPIO8 (1*8+0 = 8) # on EV200:
#GPIO1_1 -> GPIO9 (1*8+1 = 9) # GPIO1_0 -> GPIO8 (1*8+0 = 8)
# GPIO1_1 -> GPIO9 (1*8+1 = 9)
# on EV300:
# GPIO1_3 -> GPIO11
# GPIO1_2 -> GPIO10
#(normal mode) #(normal mode)
ir_cut_enable() { ir_cut_enable() {
@ -63,8 +68,8 @@ else
gpio_0=8 gpio_0=8
gpio_1=9 gpio_1=9
elif [ $1 = "hi3516ev300" ]; then elif [ $1 = "hi3516ev300" ]; then
gpio_0=8 gpio_0=11
gpio_1=9 gpio_1=10
else else
echo "wrong chipid: $1, please select: hi3516ev200 or hi3516ev300." echo "wrong chipid: $1, please select: hi3516ev200 or hi3516ev300."
exit exit