diff --git a/boards/arm/quark_se_c1000_ble/Kconfig.board b/boards/arm/quark_se_c1000_ble/Kconfig.board new file mode 100644 index 00000000000..be80eb36210 --- /dev/null +++ b/boards/arm/quark_se_c1000_ble/Kconfig.board @@ -0,0 +1,19 @@ +# Kconfig - Quark SE C1000 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_QUARK_SE_C1000_BLE + bool "Quark SE C1000 Devboard - BLE Core" + depends on SOC_NRF51822_QFAA diff --git a/boards/arm/quark_se_c1000_ble/Kconfig.defconfig b/boards/arm/quark_se_c1000_ble/Kconfig.defconfig new file mode 100644 index 00000000000..05571556d9d --- /dev/null +++ b/boards/arm/quark_se_c1000_ble/Kconfig.defconfig @@ -0,0 +1,47 @@ +# Kconfig - Quark SE C1000 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_QUARK_SE_C1000_BLE + +config BOARD + default quark_se_c1000_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 8 + +config UART_NRF5_GPIO_CTS_PIN + default 10 + +endif # UART_NRF5 + +endif # BOARD_QUARK_SE_C1000_BLE diff --git a/boards/arm/quark_se_c1000_ble/Makefile b/boards/arm/quark_se_c1000_ble/Makefile new file mode 100644 index 00000000000..c925263c43a --- /dev/null +++ b/boards/arm/quark_se_c1000_ble/Makefile @@ -0,0 +1,2 @@ +# No C files (yet) +obj- += dummy.o diff --git a/boards/arm/quark_se_c1000_ble/board.h b/boards/arm/quark_se_c1000_ble/board.h new file mode 100644 index 00000000000..66dd23fd7db --- /dev/null +++ b/boards/arm/quark_se_c1000_ble/board.h @@ -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 + +#endif /* __INC_BOARD_H */ diff --git a/boards/arm/quark_se_c1000_ble/quark_se_c1000_ble_defconfig b/boards/arm/quark_se_c1000_ble/quark_se_c1000_ble_defconfig new file mode 100644 index 00000000000..0f3a6e6510e --- /dev/null +++ b/boards/arm/quark_se_c1000_ble/quark_se_c1000_ble_defconfig @@ -0,0 +1,13 @@ +CONFIG_ARM=y +CONFIG_SOC_FAMILY_NRF5=y +CONFIG_SOC_SERIES_NRF51X=y +CONFIG_SOC_NRF51822_QFAA=y +CONFIG_BOARD_QUARK_SE_C1000_BLE=y + +# enable uart driver +CONFIG_SERIAL=y +CONFIG_UART_NRF5=y + +# bluetooth +CONFIG_BLUETOOTH=y +CONFIG_BLUETOOTH_CONTROLLER=y diff --git a/scripts/sanity_chk/arches/arm.ini b/scripts/sanity_chk/arches/arm.ini index dd60faeae10..7caa4d9a7b1 100644 --- a/scripts/sanity_chk/arches/arm.ini +++ b/scripts/sanity_chk/arches/arm.ini @@ -3,7 +3,7 @@ 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 nucleo_f401re 96b_carbon nrf51_blenano - arduino_101_ble cc3200_launchxl + arduino_101_ble cc3200_launchxl quark_se_c1000_ble supported_toolchains = zephyr gccarmemb [qemu_cortex_m3]