From c6cb10129e3159d45a5fb08d169fe1e390595f57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Genesio=20=28=E4=BA=8C=E3=82=B3=E3=82=B2?= =?UTF-8?q?=E3=83=8D=29?= Date: Tue, 21 Feb 2023 20:32:27 +0100 Subject: [PATCH] Fix strain2 compilation (#343) --- .../board/strain2/bsp/embot_hw_bsp_strain2.h | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 emBODY/eBcode/arch-arm/board/strain2/bsp/embot_hw_bsp_strain2.h diff --git a/emBODY/eBcode/arch-arm/board/strain2/bsp/embot_hw_bsp_strain2.h b/emBODY/eBcode/arch-arm/board/strain2/bsp/embot_hw_bsp_strain2.h new file mode 100644 index 0000000000..ed88391565 --- /dev/null +++ b/emBODY/eBcode/arch-arm/board/strain2/bsp/embot_hw_bsp_strain2.h @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2023 iCub Tech - Istituto Italiano di Tecnologia + * Author: Marco Accame + * email: marco.accame@iit.it +*/ + +// - include guard ---------------------------------------------------------------------------------------------------- + +#ifndef _EMBOT_HW_BSP_STRAIN2_H_ +#define _EMBOT_HW_BSP_STRAIN2_H_ + +#include "embot_core.h" +#include "embot_hw_types.h" + +#include "embot_hw_led.h" +#include "embot_hw_si7051.h" +#include "embot_hw_bno055.h" +#include "embot_hw_pga308.h" + +namespace embot { namespace hw { namespace bsp { namespace strain2 { + + // adds in here constants or functions specific to the board + const embot::hw::LED ledBLUE = embot::hw::LED::one; + const embot::hw::SI7051 thermometerSGAUGES = embot::hw::SI7051::one; + const embot::hw::si7051::Config thermometerSGAUGESconfig {}; + const embot::hw::BNO055 imuBOSCH = embot::hw::BNO055::one; + const embot::hw::bno055::Config imuBOSCHconfig {}; + +}}}} + +#endif // include-guard + + +// - end-of-file (leave a blank line after)---------------------------------------------------------------------------- + + +