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