Complete sensor demo.
Dependencies: modem_ref_helper CRC X_NUCLEO_IKS01A1 DebouncedInterrupt
sensors_cfg.h
00001 // ----------------------------------------------- 00002 // TARGET Options 00003 // ----------------------------------------------- 00004 00005 #if defined(TARGET_STM32L152RE) 00006 00007 //#define TARGET_HAS_IKS01A1 00008 00009 // ----------------------------------------------- 00010 // Select the sensors 00011 // -1 : disable, 0 : simu, 1 : hardware 00012 // ----------------------------------------------- 00013 #ifdef TARGET_HAS_IKS01A1 00014 // use all sensors from IKS01A1 shield for Nucleo-64 00015 #define _MAG_EN_ (1) 00016 #define _ACC_EN_ (1) 00017 #define _GYR_EN_ (1) 00018 #define _PRE_EN_ (1) 00019 #define _HUM_EN_ (1) 00020 #define _TEM1_EN_ (1) 00021 #define _TEM2_EN_ (1) 00022 #else 00023 // simulate sensors 00024 #define _MAG_EN_ (0) 00025 #define _ACC_EN_ (0) 00026 #define _GYR_EN_ (0) 00027 #define _PRE_EN_ (0) 00028 #define _HUM_EN_ (0) 00029 #define _TEM1_EN_ (0) 00030 #define _TEM2_EN_ (0) 00031 #endif // TARGET_HAS_IKS01A1 00032 00033 #define _LIGHT_EN_ (-1) 00034 00035 #elif defined(TARGET_STM32L432KC) 00036 // Enable this if WISENSE2 is populated with LSM303C (instead of LSM303AGR) 00037 #define TARGET_HAS_LSM303C 00038 00039 // ----------------------------------------------- 00040 // Select the sensors available on the sh2050 00041 // -1 : disable, 0 : simu, 1 : hardware 00042 // ----------------------------------------------- 00043 #define _MAG_EN_ (1) 00044 #define _ACC_EN_ (1) 00045 #define _GYR_EN_ (-1) 00046 #define _PRE_EN_ (1) 00047 #define _HUM_EN_ (1) 00048 #define _TEM1_EN_ (1) 00049 #define _TEM2_EN_ (1) 00050 #define _LIGHT_EN_ (1) 00051 00052 #else 00053 #error "Please choose or add the right platform." 00054 #endif
Generated on Tue Jul 12 2022 15:22:26 by 1.7.2