boards: Add board definition for the BLE core on Arduino 101

The BLE core on the Arduino 101 is an nRF51822 QFAA (256kB flash, 16kB
RAM).

Change-Id: Ia802b3eb634c0cd6775c4059c9569bccd915a578
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2016-10-25 11:18:26 +03:00 committed by Anas Nashif
commit 9702b83ef2
7 changed files with 113 additions and 1 deletions

View file

@ -100,6 +100,11 @@ M: Amit Kucheria <amit.kucheria@linaro.org>
S: Supported
F: boards/arm/96b_nitrogen/
BOARDS/ARM - ARDUINO 101 BLE
M: Johan Hedberg <johan.hedberg@intel.com>
S: Supported
F: boards/arm/arduino_101_ble/
BOARDS/ARM - NXP FRDM-K64F
M: Maureen Helm <maureen.helm@nxp.com>
S: Supported

View file

@ -0,0 +1,19 @@
# Kconfig - Arduino 101 BLE (nRF51822) configuration
#
# Copyright (c) 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
config BOARD_ARDUINO_101_BLE
bool "Arduino 101 BLE"
depends on SOC_NRF51822_QFAA

View file

@ -0,0 +1,47 @@
# Kconfig - Arduino 101 BLE (nRF51822) configuration
#
# Copyright (c) 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
if BOARD_ARDUINO_101_BLE
config BOARD
default arduino_101_ble
if UART_NRF5
config GPIO
default y
config GPIO_NRF5
default y
config GPIO_NRF5_P0
default y
config UART_NRF5_GPIO_TX_PIN
default 9
config UART_NRF5_GPIO_RX_PIN
default 11
config UART_NRF5_GPIO_RTS_PIN
default 12
config UART_NRF5_GPIO_CTS_PIN
default 10
endif # UART_NRF5
endif # BOARD_ARDUINO_101_BLE

View file

@ -0,0 +1,2 @@
# No C files (yet)
obj- += dummy.o

View file

@ -0,0 +1,13 @@
CONFIG_ARM=y
CONFIG_SOC_FAMILY_NRF5=y
CONFIG_SOC_SERIES_NRF51X=y
CONFIG_SOC_NRF51822_QFAA=y
CONFIG_BOARD_ARDUINO_101_BLE=y
# enable uart driver
CONFIG_SERIAL=y
CONFIG_UART_NRF5=y
# bluetooth
CONFIG_BLUETOOTH=y
CONFIG_BLUETOOTH_CONTROLLER=y

View file

@ -0,0 +1,22 @@
/*
* Copyright (c) 2016 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef __INC_BOARD_H
#define __INC_BOARD_H
#include <soc.h>
#endif /* __INC_BOARD_H */

View file

@ -1,7 +1,8 @@
[arch]
name = arm
platforms = qemu_cortex_m3 frdm_k64f arduino_due nucleo_f103rb stm32_mini_a15
olimexino_stm32 96b_nitrogen nrf52_pca10040 hexiwear_k64 nrf51_pca10028
olimexino_stm32 96b_nitrogen nrf52_pca10040 hexiwear_k64
nrf51_pca10028 arduino_101_ble
supported_toolchains = zephyr gccarmemb
[qemu_cortex_m3]
@ -30,3 +31,6 @@ qemu_support = false
[nrf51_pca10028]
qemu_support = false
[arduino_101_ble]
qemu_support = false