summaryrefslogtreecommitdiff
path: root/chip/nrf51/build.mk
blob: d7354fbcb5fa727238d2b0dc86241fc4d5180f78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*- makefile -*-
# Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# nRF51822 chip specific files build
#

CORE:=cortex-m0
# Force ARMv6-M ISA used by the Cortex-M0
# For historical reasons gcc calls it armv6s-m: ARM used to have ARMv6-M
# without "svc" instruction, but that was short-lived. ARMv6S-M was the option
# with "svc". GCC kept that naming scheme even though the distinction is long
# gone.
CFLAGS_CPU+=-march=armv6s-m -mcpu=cortex-m0

chip-y+=gpio.o system.o uart.o
chip-y+=jtag.o watchdog.o ppi.o

chip-$(CONFIG_BLUETOOTH_LE)+=radio.o bluetooth_le.o
chip-$(CONFIG_BLUETOOTH_LE_RADIO_TEST)+=radio_test.o
chip-$(CONFIG_COMMON_TIMER)+=hwtimer.o clock.o
chip-$(CONFIG_I2C)+=i2c.o
chip-$(HAS_TASK_KEYSCAN)+=keyboard_raw.o