Update IO settings for baresip project

pull/7/head
Signor Pellegrino (from Citadel PC) 2024-01-29 21:43:29 +03:00
parent c7c5f613e6
commit 5548127815
3 changed files with 25 additions and 14 deletions

View File

@ -0,0 +1,25 @@
#!/bin/sh
# Initializing the second UART as /tty/AMA1
#
devmem 0x112c0070 32 0x2
devmem 0x112c0074 32 0x2
# GPIO initialization and voltage supply to the LFD - gpio12
#
devmem 0x120c0010 32 2
gpio set 12
# GPIO initialization - gpio40
#
devmem 0x112c0040 32 0x0
gpio clear 40
# GPIO initialization - gpio41
#
devmem 0x112c0044 32 0x0
gpio clear 41

View File

@ -1,8 +0,0 @@
#!/bin/sh
# GPIO initialization and voltage supply to the LFD
#
devmem 0x120c0010 32 2
[ -d /sys/class/gpio/gpio12 ] || echo 12 >/sys/class/gpio/export
echo out >/sys/class/gpio/gpio12/direction
echo 1 >/sys/class/gpio/gpio12/value

View File

@ -1,6 +0,0 @@
#!/bin/sh
# Initializing the second UART as /tty/AMA1
#
devmem 0x112c0070 32 0x2
devmem 0x112c0074 32 0x2