1 # 2 # Copyright (C) 2017 STMicroelectronics 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 # 16 17 #variant makefile for argonkey 18 19 ifneq ($(PLATFORM),stm32) 20 $(error "ARGONKEY variant cannot be build on a platform that is not stm32") 21 endif 22 23 FLAGS += -DPLATFORM_HW_TYPE=0x4172 #'Ar' -> argonkey 24 FLAGS += -DDEBUG_SWD 25 26 FLAGS += -I$(VARIANT_PATH)/inc 27 28 #board configuration shims 29 SRCS_os += $(VARIANT_PATH)/src/os/i2c.c 30 SRCS_os += $(VARIANT_PATH)/src/os/led.c 31 SRCS_os += $(VARIANT_PATH)/src/os/spi.c 32 #keys 33 34 #drivers 35 # Fusion algorithms 36 SRCS_os += os/algos/fusion.c \ 37 os/algos/common/math/mat.c \ 38 os/algos/common/math/quat.c \ 39 os/algos/common/math/vec.c 40 41 # LSM6DSL accel+gyro with mag slave 42 SRCS_os += os/drivers/st_lsm6dsm/st_lsm6dsm.c \ 43 os/algos/calibration/accelerometer/accel_cal.c \ 44 os/algos/calibration/gyroscope/gyro_cal.c \ 45 os/algos/calibration/gyroscope/gyro_stillness_detect.c \ 46 os/algos/calibration/magnetometer/mag_cal.c \ 47 os/algos/calibration/common/diversity_checker.c \ 48 os/algos/calibration/over_temp/over_temp_cal.c \ 49 os/algos/time_sync.c 50 51 # Orientation sensor driver 52 SRCS_os += os/drivers/orientation/orientation.c 53 54 # Window orientation sensor driver 55 SRCS_os += os/drivers/window_orientation/window_orientation.c 56 57 # LPS22HB baro+temp 58 SRCS_os += os/drivers/st_lps22hb/lps22hb.c 59 60 # Hall effect sensor driver 61 SRCS_os += os/drivers/hall/hall.c 62 63 # HTS221 humidity 64 SRCS_os += os/drivers/st_hts221/hts221.c 65 66 # ISL29034 ALS 67 SRCS_os += os/drivers/intersil_isl29034/isl29034.c 68 69 # LED on GPIO 70 SRCS_os += os/drivers/leds/leds_gpio.c 71 72 # LP3943 LED controller 73 SRCS_os += os/drivers/leds/leds_lp3943.c 74 75 # Tilt detection 76 SRCS_os += os/drivers/tilt_detection/tilt_detection.c 77 78 # Digital microphone 79 # FIXME 80 81 # VL53L0X Proximity 82 # FIXME 83 84 # Button 85 # FIXME 86 87 $(info included ARGONKEY variant) 88