Home | History | Annotate | Download | only in argonkey
      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 SRCS_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
     50 SRCS_os += os/drivers/st_lsm6dsm/st_lsm6dsm.c
     51 
     52 # Orientation sensor driver
     53 SRCS_os += os/drivers/orientation/orientation.c
     54 
     55 # Window orientation sensor driver
     56 SRCS_os += os/drivers/window_orientation/window_orientation.c
     57 
     58 # LPS22HB baro+temp
     59 SRCS_os += os/drivers/st_lps22hb/lps22hb.c
     60 
     61 # Hall effect sensor driver
     62 SRCS_os += os/drivers/hall/hall.c
     63 
     64 # HTS221 humidity
     65 SRCS_os += os/drivers/st_hts221/hts221.c
     66 
     67 # ISL29034 ALS
     68 SRCS_os += os/drivers/intersil_isl29034/isl29034.c
     69 
     70 # LED on GPIO
     71 SRCS_os += os/drivers/leds/leds_gpio.c
     72 
     73 # LP3943 LED controller
     74 SRCS_os += os/drivers/leds/leds_lp3943.c
     75 
     76 # Tilt detection
     77 SRCS_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