Skip to content

Commit

Permalink
[TI] Update Openthread & TI SDK references (#31456)
Browse files Browse the repository at this point in the history
* Use Correct DMM library for M33F

* Shift FreeRTOS Tickrate to 1ms to free up CPU.

* Update SDK ref.

* Update OT-TI ref

* Update Openthread TI reference

* Restyled by gn

---------

Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
adabreuti and restyled-commits authored Jan 19, 2024
1 parent e512bf7 commit b21ea7d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/platform/cc13xx_26xx/cc13x2_26x2/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

/* Constants related to the behaviour or the scheduler. */
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
#define configTICK_RATE_HZ ((TickType_t) 100000)
#define configTICK_RATE_HZ ((TickType_t) 1000)
#define configUSE_PREEMPTION 1
#define configUSE_TIME_SLICING 0
#define configMAX_PRIORITIES (10UL)
Expand Down
2 changes: 1 addition & 1 deletion src/platform/cc13xx_26xx/cc13x4_26x4/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
#define configMINIMAL_SECURE_STACK_SIZE configMINIMAL_STACK_SIZE

/* Constants related to the behaviour or the scheduler. */
#define configTICK_RATE_HZ ((TickType_t) 100000)
#define configTICK_RATE_HZ ((TickType_t) 1000)
#define configUSE_PREEMPTION 1
#define configUSE_TIME_SLICING 0
#define configMAX_PRIORITIES (10UL)
Expand Down
2 changes: 1 addition & 1 deletion third_party/ti_simplelink_sdk/repo_cc13xx_cc26xx
2 changes: 1 addition & 1 deletion third_party/ti_simplelink_sdk/ti_simplelink_board.gni
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ if (ti_simplelink_board == "CC1352R1_LAUNCHXL") {
ti_simplelink_isa = "m33f"
} else if (ti_simplelink_board == "LP_CC2652R7") {
ti_simplelink_device_family = "cc13x2x7_26x2x7"
ti_simplelink_soc_family = "cc26x2"
ti_simplelink_soc_family = "cc26x2x7"
ti_simplelink_isa = "m4f"

# set -DDeviceFamily_CC26X2?
Expand Down
13 changes: 9 additions & 4 deletions third_party/ti_simplelink_sdk/ti_simplelink_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,14 @@ template("ti_simplelink_sdk") {
]
defines = []

if (ti_simplelink_device_family == "cc13x2_26x2" ||
ti_simplelink_device_family == "cc13x2x7_26x2x7" ||
ti_simplelink_device_family == "cc13x4_26x4") {
if (ti_simplelink_device_family == "cc13x2x7_26x2x7") {
libs += [
"${ti_simplelink_sdk_root}/source/ti/drivers/lib/gcc/${ti_simplelink_isa}/drivers_${ti_simplelink_soc_family}.a",
"${ti_simplelink_sdk_root}/source/ti/drivers/rf/lib/gcc/${ti_simplelink_isa}/rf_multiMode_cc13x2.a",
]
} else if (ti_simplelink_device_family == "cc13x2_26x2" ||
ti_simplelink_device_family == "cc13x2x7_26x2x7" ||
ti_simplelink_device_family == "cc13x4_26x4") {
assert(ti_simplelink_soc_family != "",
"ti_simplelink_soc_family must be specified")
assert(ti_simplelink_device_family != "",
Expand Down Expand Up @@ -476,7 +481,7 @@ template("ti_simplelink_sdk") {
"${ti_simplelink_sdk_root}/source/ti/ble5stack/common/cc26xx/freertos/",
]
} else if (ti_simplelink_device_family == "cc13x4_26x4") {
libs += [ "${ti_simplelink_sdk_root}/source/ti/dmm/lib/gcc/m4f/libdmmlib_freertos.a" ]
libs += [ "${ti_simplelink_sdk_root}/source/ti/dmm/lib/gcc/m33f/libdmmlib_freertos.a" ]
if (ti_simplelink_board == "LP_EM_CC1354P10_1" ||
(ti_simplelink_board == "CC2674" &&
ti_simplelink_device == "CC2674R10RGZ")) {
Expand Down

0 comments on commit b21ea7d

Please sign in to comment.