From 7f0d2f23b74ae17934a01fa7ffc479285511a4b0 Mon Sep 17 00:00:00 2001 From: Daniel Agar <daniel@agar.ca> Date: Fri, 30 Nov 2018 14:45:15 -0500 Subject: [PATCH] move atmel_same70xplained init to rc.board --- ROMFS/px4fmu_common/init.d/rc.sensors | 17 ----------------- boards/atmel/same70xplained/init/rc.board | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 boards/atmel/same70xplained/init/rc.board diff --git a/ROMFS/px4fmu_common/init.d/rc.sensors b/ROMFS/px4fmu_common/init.d/rc.sensors index 85f257927c..6a53ee9c91 100644 --- a/ROMFS/px4fmu_common/init.d/rc.sensors +++ b/ROMFS/px4fmu_common/init.d/rc.sensors @@ -5,10 +5,6 @@ # NOTE: Script variables are declared/initialized/unset in the rcS script. # -############################################################################### -# Begin Setup for board specific configurations. # -############################################################################### - if ! ver hwcmp AEROFC_V1 OMNIBUS_F4SD then if ! ver hwcmp BITCRAZE_CRAZYFLIE @@ -31,19 +27,6 @@ then adc start fi -if ver hwcmp ATMEL_SAME70XPLAINED_V1 -then - # External I2C bus - hmc5883 -C -T -X start - - # Internal SPI bus mpu9250 is rotated 90 deg yaw - mpu9250 -R 2 start -fi - -############################################################################### -# End Setup for board specific configurations. # -############################################################################### - ############################################################################### # Begin Optional drivers # ############################################################################### diff --git a/boards/atmel/same70xplained/init/rc.board b/boards/atmel/same70xplained/init/rc.board new file mode 100644 index 0000000000..2fb4e72721 --- /dev/null +++ b/boards/atmel/same70xplained/init/rc.board @@ -0,0 +1,17 @@ +#!nsh +# +# Atmel SAM E70 Xplained specific board init +# +#------------------------------------------------------------------------------ +# + +if [ $AUTOCNF = yes ] +then + +fi + +# External I2C bus +hmc5883 -C -T -X start + +# Internal SPI bus mpu9250 is rotated 90 deg yaw +mpu9250 -R 2 start -- GitLab