move gumstix_aerocore2 init to rc.board

This commit is contained in:
Daniel Agar 2018-11-30 14:40:30 -05:00
parent a3fed608a6
commit 0e980c1f83
3 changed files with 20 additions and 11 deletions

View File

@ -31,12 +31,6 @@ then
adc start
fi
if ver hwcmp GUMSTIX_AEROCORE2
then
l3gd20 -R 12 start
lsm303d start
fi
if ver hwcmp BITCRAZE_CRAZYFLIE
then
# Onboard I2C

View File

@ -225,11 +225,6 @@ else
sh $BOARD_RC
fi
if ver hwcmp GUMSTIX_AEROCORE2
then
set DATAMAN_OPT "-f /fs/mtd_dataman"
fi
if ver hwcmp BITCRAZE_CRAZYFLIE
then
if param compare SYS_AUTOSTART 0

View File

@ -0,0 +1,20 @@
#!nsh
#
# Gumstix Aerocore2 specific board init
#
#------------------------------------------------------------------------------
#
if [ $AUTOCNF = yes ]
then
# Disable safety switch by default
param set CBRK_IO_SAFETY 22027
param set SYS_FMU_TASK 1
fi
set DATAMAN_OPT "-f /fs/mtd_dataman"
set MIXER_AUX none
l3gd20 -R 12 start
lsm303d start