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 19ifneq ($(PLATFORM),stm32) 20 $(error "ARGONKEY variant cannot be build on a platform that is not stm32") 21endif 22 23FLAGS += -DPLATFORM_HW_TYPE=0x4172 #'Ar' -> argonkey 24FLAGS += -DDEBUG_SWD 25 26FLAGS += -I$(VARIANT_PATH)/inc 27 28#board configuration shims 29SRCS_os += $(VARIANT_PATH)/src/os/i2c.c 30SRCS_os += $(VARIANT_PATH)/src/os/led.c 31SRCS_os += $(VARIANT_PATH)/src/os/spi.c 32#keys 33 34SRCS_os += \ 35 os/algos/calibration/accelerometer/accel_cal.c \ 36 os/algos/calibration/gyroscope/gyro_cal.c \ 37 os/algos/calibration/gyroscope/gyro_stillness_detect.c \ 38 os/algos/calibration/magnetometer/mag_cal/mag_cal.c \ 39 os/algos/calibration/diversity_checker/diversity_checker.c \ 40 os/algos/calibration/over_temp/over_temp_cal.c \ 41 os/algos/common/math/kasa.c \ 42 os/algos/common/math/mat.c \ 43 os/algos/common/math/quat.c \ 44 os/algos/common/math/vec.c \ 45 os/algos/fusion.c \ 46 os/algos/time_sync.c 47 48#drivers 49# LSM6DSL accel+gyro with mag slave 50SRCS_os += os/drivers/st_lsm6dsm/st_lsm6dsm.c 51 52# Orientation sensor driver 53SRCS_os += os/drivers/orientation/orientation.c 54 55# Window orientation sensor driver 56SRCS_os += os/drivers/window_orientation/window_orientation.c 57 58# LPS22HB baro+temp 59SRCS_os += os/drivers/st_lps22hb/lps22hb.c 60 61# Hall effect sensor driver 62SRCS_os += os/drivers/hall/hall.c 63 64# HTS221 humidity 65SRCS_os += os/drivers/st_hts221/hts221.c 66 67# ISL29034 ALS 68SRCS_os += os/drivers/intersil_isl29034/isl29034.c 69 70# LED on GPIO 71SRCS_os += os/drivers/leds/leds_gpio.c 72 73# LP3943 LED controller 74SRCS_os += os/drivers/leds/leds_lp3943.c 75 76# Tilt detection 77SRCS_os += os/drivers/tilt_detection/tilt_detection.c 78 79# Digital microphone 80# FIXME 81 82# VL53L0X Proximity 83# FIXME 84 85# Button 86# FIXME 87 88$(info included ARGONKEY variant) 89