From 10ea5d01c63b29f8ff4daa068c029c86d5f7aae7 Mon Sep 17 00:00:00 2001 From: Gil Pitney Date: Tue, 25 Oct 2016 17:28:38 -0700 Subject: [PATCH] boards: arm: Add support for TI SimpleLink WiFi CC3200 LaunchXL Added Kconfig and makefiles to be able to build a Zephyr application on Linux/gcc, and load via OpenOCD. Validated by running the hello world, and philosophers microkernel samples, and stepping through the code in gdb. Jira: ZEP-1109 Change-Id: If5d3e7b1a8ecf5ecf6a00f147742b3bc5716190f Signed-off-by: Gil Pitney --- boards/arm/cc3200_launchxl/Kconfig | 6 ++++++ boards/arm/cc3200_launchxl/Kconfig.board | 6 ++++++ boards/arm/cc3200_launchxl/Kconfig.defconfig | 9 +++++++++ boards/arm/cc3200_launchxl/Makefile | 2 ++ boards/arm/cc3200_launchxl/board.h | 19 +++++++++++++++++++ .../cc3200_launchxl/cc3200_launchxl_defconfig | 12 ++++++++++++ scripts/sanity_chk/arches/arm.ini | 3 +-- 7 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 boards/arm/cc3200_launchxl/Kconfig create mode 100644 boards/arm/cc3200_launchxl/Kconfig.board create mode 100644 boards/arm/cc3200_launchxl/Kconfig.defconfig create mode 100644 boards/arm/cc3200_launchxl/Makefile create mode 100644 boards/arm/cc3200_launchxl/board.h create mode 100644 boards/arm/cc3200_launchxl/cc3200_launchxl_defconfig diff --git a/boards/arm/cc3200_launchxl/Kconfig b/boards/arm/cc3200_launchxl/Kconfig new file mode 100644 index 00000000000..5711ec26318 --- /dev/null +++ b/boards/arm/cc3200_launchxl/Kconfig @@ -0,0 +1,6 @@ +# Kconfig - TI CC3200 LaunchXL configuration +# + +if BOARD_CC3200_LAUNCHXL + +endif # BOARD_CC3200_LAUNCHXL diff --git a/boards/arm/cc3200_launchxl/Kconfig.board b/boards/arm/cc3200_launchxl/Kconfig.board new file mode 100644 index 00000000000..2c8b4025ba9 --- /dev/null +++ b/boards/arm/cc3200_launchxl/Kconfig.board @@ -0,0 +1,6 @@ +# Kconfig - TI SimpleLink CC3200 LaunchXL Board +# + +config BOARD_CC3200_LAUNCHXL + bool "TI CC3200 LAUNCHXL" + depends on SOC_CC3200 diff --git a/boards/arm/cc3200_launchxl/Kconfig.defconfig b/boards/arm/cc3200_launchxl/Kconfig.defconfig new file mode 100644 index 00000000000..065e30277da --- /dev/null +++ b/boards/arm/cc3200_launchxl/Kconfig.defconfig @@ -0,0 +1,9 @@ +# Kconfig - TI CC3200 LaunchXL board configuration +# + +if BOARD_CC3200_LAUNCHXL + +config BOARD + default cc3200_launchxl + +endif # BOARD_CC3200_LAUNCHXL diff --git a/boards/arm/cc3200_launchxl/Makefile b/boards/arm/cc3200_launchxl/Makefile new file mode 100644 index 00000000000..c925263c43a --- /dev/null +++ b/boards/arm/cc3200_launchxl/Makefile @@ -0,0 +1,2 @@ +# No C files (yet) +obj- += dummy.o diff --git a/boards/arm/cc3200_launchxl/board.h b/boards/arm/cc3200_launchxl/board.h new file mode 100644 index 00000000000..5e40b786536 --- /dev/null +++ b/boards/arm/cc3200_launchxl/board.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2016, Texas Instruments Incorporated + * + * 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 + +#endif /* __INC_BOARD_H */ diff --git a/boards/arm/cc3200_launchxl/cc3200_launchxl_defconfig b/boards/arm/cc3200_launchxl/cc3200_launchxl_defconfig new file mode 100644 index 00000000000..66dc1923f68 --- /dev/null +++ b/boards/arm/cc3200_launchxl/cc3200_launchxl_defconfig @@ -0,0 +1,12 @@ +CONFIG_ARM=y +CONFIG_BOARD_CC3200_LAUNCHXL=y +CONFIG_SOC_FAMILY_TISIMPLELINK=y +CONFIG_SOC_SERIES_CC32XX=y +CONFIG_SOC_CC3200=y +CONFIG_CORTEX_M_SYSTICK=y +CONFIG_FLASH=n +CONFIG_FLASH_BASE_ADDRESS=0x00000000 +CONFIG_XIP=n + +# Enable CC3200 SDK driver files +CONFIG_CC3200SDK_BUILTIN=y diff --git a/scripts/sanity_chk/arches/arm.ini b/scripts/sanity_chk/arches/arm.ini index d418482d96d..dd60faeae10 100644 --- a/scripts/sanity_chk/arches/arm.ini +++ b/scripts/sanity_chk/arches/arm.ini @@ -3,8 +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 - + arduino_101_ble cc3200_launchxl supported_toolchains = zephyr gccarmemb [qemu_cortex_m3]