mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
move gumstix_aerocore2 init to rc.board
This commit is contained in:
@@ -31,12 +31,6 @@ then
|
|||||||
adc start
|
adc start
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ver hwcmp GUMSTIX_AEROCORE2
|
|
||||||
then
|
|
||||||
l3gd20 -R 12 start
|
|
||||||
lsm303d start
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ver hwcmp BITCRAZE_CRAZYFLIE
|
if ver hwcmp BITCRAZE_CRAZYFLIE
|
||||||
then
|
then
|
||||||
# Onboard I2C
|
# Onboard I2C
|
||||||
|
|||||||
@@ -225,11 +225,6 @@ else
|
|||||||
sh $BOARD_RC
|
sh $BOARD_RC
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ver hwcmp GUMSTIX_AEROCORE2
|
|
||||||
then
|
|
||||||
set DATAMAN_OPT "-f /fs/mtd_dataman"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ver hwcmp BITCRAZE_CRAZYFLIE
|
if ver hwcmp BITCRAZE_CRAZYFLIE
|
||||||
then
|
then
|
||||||
if param compare SYS_AUTOSTART 0
|
if param compare SYS_AUTOSTART 0
|
||||||
|
|||||||
20
boards/gumstix/aerocore2/init/rc.board
Normal file
20
boards/gumstix/aerocore2/init/rc.board
Normal 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
|
||||||
Reference in New Issue
Block a user