From 04e95b210059bdeb431ee01235381b08e5320e0e Mon Sep 17 00:00:00 2001
From: nanosonde <2073569+nanosonde@users.noreply.github.com>
Date: Mon, 16 Nov 2020 21:23:16 +0100
Subject: [PATCH] Add TI code composer project files for CC1310 example (#101)
* Remove required HEAP size
* Add Code Composer Project files
* Add default debug print to UART
* Update .cproject
* Add README.md
---
.../knx-cc1310/CC1310_LAUNCHXL_NoRTOS.lds | 2 +-
examples/knx-cc1310/ccs/.ccsproject | 17 ++
examples/knx-cc1310/ccs/.cproject | 214 ++++++++++++++++++
examples/knx-cc1310/ccs/.project | 104 +++++++++
examples/knx-cc1310/ccs/README.md | 7 +
src/cc1310_platform.cpp | 5 +-
6 files changed, 346 insertions(+), 3 deletions(-)
create mode 100644 examples/knx-cc1310/ccs/.ccsproject
create mode 100644 examples/knx-cc1310/ccs/.cproject
create mode 100644 examples/knx-cc1310/ccs/.project
create mode 100644 examples/knx-cc1310/ccs/README.md
diff --git a/examples/knx-cc1310/CC1310_LAUNCHXL_NoRTOS.lds b/examples/knx-cc1310/CC1310_LAUNCHXL_NoRTOS.lds
index f06e608..10cf377 100644
--- a/examples/knx-cc1310/CC1310_LAUNCHXL_NoRTOS.lds
+++ b/examples/knx-cc1310/CC1310_LAUNCHXL_NoRTOS.lds
@@ -35,7 +35,7 @@
*/
STACKSIZE = 4096+1024;
-HEAPSIZE = 4096;
+HEAPSIZE = 2048;
MEMORY
{
diff --git a/examples/knx-cc1310/ccs/.ccsproject b/examples/knx-cc1310/ccs/.ccsproject
new file mode 100644
index 0000000..e75e07e
--- /dev/null
+++ b/examples/knx-cc1310/ccs/.ccsproject
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/knx-cc1310/ccs/.cproject b/examples/knx-cc1310/ccs/.cproject
new file mode 100644
index 0000000..cf67d5d
--- /dev/null
+++ b/examples/knx-cc1310/ccs/.cproject
@@ -0,0 +1,214 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/knx-cc1310/ccs/.project b/examples/knx-cc1310/ccs/.project
new file mode 100644
index 0000000..d6bbe26
--- /dev/null
+++ b/examples/knx-cc1310/ccs/.project
@@ -0,0 +1,104 @@
+
+
+ knx-cc1310
+
+
+
+
+
+ org.eclipse.cdt.managedbuilder.core.genmakebuilder
+
+
+
+
+ org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder
+ full,incremental,
+
+
+
+
+
+ com.ti.ccstudio.core.ccsNature
+ org.eclipse.cdt.core.cnature
+ org.eclipse.cdt.managedbuilder.core.managedBuildNature
+ org.eclipse.cdt.core.ccnature
+ org.eclipse.cdt.managedbuilder.core.ScannerConfigNature
+
+
+
+ Board.h
+ 1
+ PARENT-1-PROJECT_LOC/Board.h
+
+
+ CC1310_LAUNCHXL.c
+ 1
+ PARENT-1-PROJECT_LOC/CC1310_LAUNCHXL.c
+
+
+ CC1310_LAUNCHXL.h
+ 1
+ PARENT-1-PROJECT_LOC/CC1310_LAUNCHXL.h
+
+
+ CC1310_LAUNCHXL_NoRTOS.lds
+ 1
+ PARENT-1-PROJECT_LOC/CC1310_LAUNCHXL_NoRTOS.lds
+
+
+ CC1310_LAUNCHXL_fxns.c
+ 1
+ PARENT-1-PROJECT_LOC/CC1310_LAUNCHXL_fxns.c
+
+
+ README.md
+ 1
+ PARENT-1-PROJECT_LOC/README.md
+
+
+ RTT
+ 2
+ PARENT-1-PROJECT_LOC/RTT
+
+
+ ccfg.c
+ 1
+ PARENT-1-PROJECT_LOC/ccfg.c
+
+
+ coresdk_cc13xx_cc26xx
+ 2
+ PARENT-1-PROJECT_LOC/coresdk_cc13xx_cc26xx
+
+
+ knx
+ 2
+ PARENT-3-PROJECT_LOC/src
+
+
+ knx_wrapper.cpp
+ 1
+ PARENT-1-PROJECT_LOC/knx_wrapper.cpp
+
+
+ knx_wrapper.h
+ 1
+ PARENT-1-PROJECT_LOC/knx_wrapper.h
+
+
+ main_nortos.c
+ 1
+ PARENT-1-PROJECT_LOC/main_nortos.c
+
+
+ smartrf_settings
+ 2
+ PARENT-1-PROJECT_LOC/smartrf_settings
+
+
+ startup_cc13xx_cc26xx_gcc.c
+ 1
+ PARENT-1-PROJECT_LOC/startup_cc13xx_cc26xx_gcc.c
+
+
+
diff --git a/examples/knx-cc1310/ccs/README.md b/examples/knx-cc1310/ccs/README.md
new file mode 100644
index 0000000..5de09f0
--- /dev/null
+++ b/examples/knx-cc1310/ccs/README.md
@@ -0,0 +1,7 @@
+The folder contains the project files for TI Code Composer 10.
+Just import this folder into your workspace.
+
+* tested with TI Code Composer Version: 10.1.1.00004
+* TI LaunchPadXL CC1310 with integrated XDS110 debug probe
+
+Additional installation of an SDK is not required as the CC1310 SDK is already included as GIT subtree within this repository.
diff --git a/src/cc1310_platform.cpp b/src/cc1310_platform.cpp
index 029cdf6..ae7bc7b 100644
--- a/src/cc1310_platform.cpp
+++ b/src/cc1310_platform.cpp
@@ -17,7 +17,8 @@
#include "cc1310_platform.h"
//#define printf(args...) (SEGGER_RTT_printf(0, args))
-#define PRINT_RTT
+//#define PRINT_RTT
+#define PRINT_UART
static uint8_t serialNumber[6];
// KNX_FLASH_SIZE shall be defined in CMakeLists.txt for example. It is also used in class Memory in memory.cpp
@@ -556,4 +557,4 @@ void CC1310Platform::fatalError()
}
}
-#endif // DeviceFamily_CC13X0
\ No newline at end of file
+#endif // DeviceFamily_CC13X0