1#
2# Copyright (C) 2016 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
17LOCAL_PATH := $(call my-dir)
18
19########################################################
20# COMMON OS & BL defs
21########################################################
22
23NANOHUB_PALTFORM_PATH := $(LOCAL_PATH)
24
25########################################################
26# BOOT LOADER BINARY
27########################################################
28
29include $(CLEAR_NANO_VARS)
30
31LOCAL_MODULE := libnanohub_bl_stm32
32LOCAL_AUX_ARCH := stm32
33
34LOCAL_SRC_FILES :=      \
35    bl.c                \
36    gpio.c              \
37    pwr.c               \
38
39include $(BUILD_NANOHUB_BL_STATIC_LIBRARY)
40
41########################################################
42# NANOHUB OS BINARY
43########################################################
44
45include $(CLEAR_NANO_VARS)
46
47LOCAL_MODULE := libnanohub_os_stm32
48LOCAL_AUX_ARCH := stm32
49
50LOCAL_SRC_FILES := \
51    apInt.c \
52    crc.c \
53    crt_stm32.c \
54    dma.c \
55    eeData.c \
56    exti.c \
57    gpio.c \
58    hostIntf.c \
59    i2c.c \
60    mpu.c \
61    platform.c \
62    pwr.c \
63    rtc.c \
64    spi.c \
65    syscfg.c \
66    usart.c \
67    wdt.c \
68
69include $(BUILD_NANOHUB_OS_STATIC_LIBRARY)
70