Skip to content

Commit

Permalink
ext: simplelink: Restructure CC3220SDK as SimpleLink SDK
Browse files Browse the repository at this point in the history
The SimpleLink SDK actually encapsulates a family of devices,
of which cc32xx is just one device.  Other devices can fit
under this SDK directory structure.

This expansion will also allow the import of the WiFi
host driver and its driver porting layer in the future,
inserted at the correct levels in the SimpleLink SDK
directory heirarchy.

Follow the URL (ending in "#directory-structure") referenced in
ext/hal/ti/simplelink/README which explains the SDK structure,
and where devices fit in.

Jira: ZEP-1958

Change-Id: I16515d3e3779de0d55d3b1b8e25029609d1f66c3
Signed-off-by: Gil Pitney <[email protected]>
  • Loading branch information
Gil Pitney authored and galak committed May 4, 2017
1 parent 95628a4 commit 42b7e5d
Show file tree
Hide file tree
Showing 34 changed files with 27 additions and 23 deletions.
2 changes: 1 addition & 1 deletion boards/arm/cc3220sf_launchxl/cc3220sf_launchxl_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ CONFIG_UART_CC32XX=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# Enable CC3220 SDK
# Enable SimpleLink CC3220 SDK
CONFIG_HAS_CC3220SDK=y

# Enable DTS parsing
Expand Down
2 changes: 1 addition & 1 deletion ext/hal/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ obj-$(CONFIG_HAS_MCUX) += nxp/mcux/
obj-$(CONFIG_QMSI_BUILTIN) += qmsi/
obj-$(CONFIG_HAS_STM32CUBE) += st/stm32cube/
obj-$(CONFIG_HAS_CC3200SDK) += ti/cc3200sdk/
obj-$(CONFIG_HAS_CC3220SDK) += ti/cc3220sdk/
obj-$(CONFIG_HAS_CC3220SDK) += ti/simplelink/
obj-$(CONFIG_HAS_NORDIC_HAL) += nordic/
obj-$(CONFIG_HAS_NORDIC_DRIVERS) += nordic/drivers/
2 changes: 1 addition & 1 deletion ext/hal/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ source "ext/hal/st/stm32cube/Kconfig"

source "ext/hal/ti/cc3200sdk/Kconfig"

source "ext/hal/ti/cc3220sdk/Kconfig"
source "ext/hal/ti/simplelink/Kconfig"

endmenu
2 changes: 1 addition & 1 deletion ext/hal/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ include $(srctree)/ext/hal/st/stm32cube/Makefile

include $(srctree)/ext/hal/ti/cc3200sdk/Makefile

include $(srctree)/ext/hal/ti/cc3220sdk/Makefile
include $(srctree)/ext/hal/ti/simplelink/Makefile
4 changes: 2 additions & 2 deletions ext/hal/README
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ http://www.st.com/en/ecosystems/stm32cube.html

ti
-------
Texas Instruments CC3200 SDK provides a peripheral driver library for
the SimpleLink WiFi family of SoCs.
Texas Instruments SimpleLink SDKs provide peripheral and WiFi driver libraries
for the SimpleLink family of SoCs.
4 changes: 0 additions & 4 deletions ext/hal/ti/cc3220sdk/Kbuild

This file was deleted.

6 changes: 0 additions & 6 deletions ext/hal/ti/cc3220sdk/Makefile

This file was deleted.

4 changes: 4 additions & 0 deletions ext/hal/ti/simplelink/Kbuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ccflags-$(CONFIG_HAS_CC3220SDK) += -D$(COMPILER)
# Need to build prcm and utils for PRCMCC3220MCUInit, which is not in ROM
obj-$(CONFIG_HAS_CC3220SDK) += source/ti/devices/cc32xx/driverlib/utils.o
obj-$(CONFIG_HAS_CC3220SDK) += source/ti/devices/cc32xx/driverlib/prcm.o
File renamed without changes.
6 changes: 6 additions & 0 deletions ext/hal/ti/simplelink/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ifdef CONFIG_HAS_CC3220SDK
ZEPHYRINCLUDE +=-I$(srctree)/ext/hal/ti/simplelink/source/ti/devices/cc32xx
ZEPHYRINCLUDE +=-I$(srctree)/ext/hal/ti/simplelink/source/ti/devices/cc32xx/inc
ZEPHYRINCLUDE +=-I$(srctree)/ext/hal/ti/simplelink/source/ti/devices/cc32xx/driverlib
KBUILD_CFLAGS += -DUSE_CC3220_ROM_DRV_API
endif # CONFIG_HAS_CC3220SDK
18 changes: 11 additions & 7 deletions ext/hal/ti/cc3220sdk/README → ext/hal/ti/simplelink/README
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
The CC3220 SDK provides a peripheral driver library and hardware
register access header files for the Texas Instruments SimpleLink
CC3220S and CC3220SF SoCs.
The SimpleLink SDKs provide peripheral driver and WiFi libraries
and hardware register access header files for the Texas Instruments
SimpleLink SoCs.

The current version supported in Zephyr is CC3220 SDK 1.30.01.03,
downloaded from:
For an explanation of the SimpleLink family SDK directory structure, see:
http://dev.ti.com/tirex/content/simplelink_cc13x0_sdk_1_30_00_06/docs/simplelink_mcu_sdk/Users_Guide.html#directory-structure

The current version supported in Zephyr is the SimpleLink CC3220 SDK
1.30.01.03, downloaded from:

http://www.ti.com/tool/download/SIMPLELINK-CC3220-SDK

A subset of the files in driverlib/ and inc/ are copied from a
Linux CC3220 SDK installation without modification.
A subset of the files in the source/ti/devices/cc32xx/driverlib/ and inc/
directories are copied from a Linux CC3220 SDK installation without
modification.

TI provides the driver library functions burned into ROM at the factory,
or updated via a service pack patch, thus saving application code space.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 42b7e5d

Please sign in to comment.