Home | History | Annotate | Download | only in neonkey
      1 #
      2 # Copyright (C) 2017 The Android Open Source Project
      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 neonkey
     18 
     19 
     20 ifneq ($(PLATFORM),stm32)
     21         $(error "NEONKEY variant cannot be build on a platform that is not stm32")
     22 endif
     23 
     24 FLAGS += -DPLATFORM_HW_TYPE=0x4E65   #'Ne' ->neonkey
     25 FLAGS += -DDEBUG_SWD
     26 
     27 FLAGS += -I$(VARIANT_PATH)/inc
     28 
     29 #board configuration shims
     30 SRCS_os += $(VARIANT_PATH)/src/os/i2c.c
     31 SRCS_os += $(VARIANT_PATH)/src/os/spi.c
     32 SRCS_os += $(VARIANT_PATH)/src/os/led.c
     33 #keys
     34 
     35 #drivers
     36 
     37 # ROHM ALS/prox
     38 SRCS_os += os/drivers/rohm_rpr0521/rohm_rpr0521.c
     39 
     40 # Leds-Gpio
     41 SRCS_os += os/drivers/leds/leds_gpio.c os/drivers/leds/leds_lp3943.c
     42 
     43 # Humidity/Temp
     44 SRCS_os += os/drivers/si_si7034/si7034a10.c
     45 
     46 # Orientation sensor driver
     47 SRCS_os += os/drivers/orientation/orientation.c
     48 
     49 # Window orientation sensor driver
     50 SRCS_os += os/drivers/window_orientation/window_orientation.c
     51 
     52 # Bosch BMP280 Barometer/Temperature
     53 SRCS_os += os/drivers/bosch_bmp280/bosch_bmp280.c
     54 
     55 # Bosch BMI160 accel and gyro, BMM150 mag drivers
     56 FLAGS += -DUSE_BMM150 -DMAG_SLAVE_PRESENT
     57 SRCS_os += os/drivers/bosch_bmi160/bosch_bmi160.c \
     58 	os/drivers/bosch_bmi160/bosch_bmm150_slave.c \
     59 	os/algos/calibration/magnetometer/mag_cal.c \
     60 	os/algos/time_sync.c
     61 
     62 # Hall effect sensor driver
     63 SRCS_os += os/drivers/hall/hall.c
     64 
     65 # Tilt detection
     66 SRCS_os += os/drivers/tilt_detection/tilt_detection.c
     67 
     68 # Fusion algorithm
     69 SRCS_os += os/algos/fusion.c \
     70 	os/algos/common/math/mat.c \
     71 	os/algos/common/math/quat.c \
     72 	os/algos/common/math/vec.c
     73 
     74 $(info included NEONKEY variant)
     75