escc: updated package to match 1.9.x developments.

This commit is contained in:
Ricardo Martins 2015-09-30 18:08:10 +01:00
parent 6ee7cf59ba
commit e3731bdaa7
5 changed files with 44 additions and 16 deletions

View File

@ -1,6 +1,6 @@
version=\ version=\
( (
'1.0.5' '1.0.6'
) )
url=\ url=\
@ -10,7 +10,7 @@ url=\
md5=\ md5=\
( (
'8400860f2daa98d559b1b9b6fcc630c2' '07783e66e27601ab0a8250c328b3d6bf'
) )
if [ -d "$cfg_dir_builds/linux/linux-"* ]; then if [ -d "$cfg_dir_builds/linux/linux-"* ]; then
@ -25,7 +25,7 @@ build()
M=`pwd` \ M=`pwd` \
-C "$kernel" && -C "$kernel" &&
for util in setescc esccclock esccsettings; do for util in setescc esccclock esccsettings esccfs6131; do
make CC="$cmd_target_cc" -C "utils/$util" make CC="$cmd_target_cc" -C "utils/$util"
done done
} }
@ -40,7 +40,7 @@ target_install()
-C "$kernel" \ -C "$kernel" \
modules_install && modules_install &&
for util in setescc esccclock esccsettings; do for util in setescc esccclock esccsettings esccfs6131; do
$cmd_target_strip "utils/$util/$util" -o "$cfg_dir_rootfs/usr/bin/$util" $cmd_target_strip "utils/$util/$util" -o "$cfg_dir_rootfs/usr/bin/$util"
done && done &&

View File

@ -1,9 +1,15 @@
# IMU # Channels:
/usr/bin/setescc 0 0x200 5 0 0 0 # * 0: Honeywell HG1700
/usr/bin/esccclock 0 0x5d1460 23 # * 1: LSTS PSIMAR
/usr/bin/esccsettings 0 /etc/escc/hg1700.cfg
# PSIMAR # Create channels.
/usr/bin/setescc 0 0x200 5 0 0 0
/usr/bin/setescc 1 0x200 5 0 0 1 /usr/bin/setescc 1 0x200 5 0 0 1
# Set clocks (Hz).
"$cmd_escc_set_clock" 0 1000000
"$cmd_escc_set_clock" 1 25804800
# Set registers.
/usr/bin/esccsettings 0 /etc/escc/hg1700.cfg
/usr/bin/esccsettings 1 /etc/escc/psimar.cfg /usr/bin/esccsettings 1 /etc/escc/psimar.cfg
/usr/bin/esccclock 1 0xc8920 22

View File

@ -1,3 +1,11 @@
# Channels:
# * 0: Honeywell HG1700
# Create channels.
/usr/bin/setescc 0 0x200 5 0 0 0 /usr/bin/setescc 0 0x200 5 0 0 0
/usr/bin/esccclock 0 0x5d1460 23
# Set clocks (Hz).
"$cmd_escc_set_clock" 0 1000000
# Set registers.
/usr/bin/esccsettings 0 /etc/escc/hg1700.cfg /usr/bin/esccsettings 0 /etc/escc/hg1700.cfg

View File

@ -1,8 +1,14 @@
# IMU # Channels:
/usr/bin/setescc 0 0x200 5 0 0 0 # * 0: iMAR iFOG-IMU-1-A
/usr/bin/esccsettings 0 /etc/escc/ifog-imu-1-a.cfg # * 1: LSTS PSIMAR
# PSIMAR # Create channels.
/usr/bin/setescc 0 0x200 5 0 0 0
/usr/bin/setescc 1 0x200 5 0 0 1 /usr/bin/setescc 1 0x200 5 0 0 1
# Set clock.
"$cmd_escc_set_clock" 1 25804800
# Set registers.
/usr/bin/esccsettings 0 /etc/escc/ifog-imu-1-a.cfg
/usr/bin/esccsettings 1 /etc/escc/psimar.cfg /usr/bin/esccsettings 1 /etc/escc/psimar.cfg
/usr/bin/esccclock 1 0xc8920 22

View File

@ -5,6 +5,14 @@ start()
mknod /dev/escc0 c 261 0 && mknod /dev/escc0 c 261 0 &&
rm -f /dev/escc1 && rm -f /dev/escc1 &&
mknod /dev/escc1 c 261 1 && mknod /dev/escc1 c 261 1 &&
# Clock command.
if [ -z "$cfg_escc_et" ]; then
cmd_escc_set_clock='/usr/bin/esccclock'
else
cmd_escc_set_clock='/usr/bin/esccfs6131'
fi &&
if [ -f "$cfg_escc_script" ]; then if [ -f "$cfg_escc_script" ]; then
source "$cfg_escc_script" source "$cfg_escc_script"
fi fi