-
Notifications
You must be signed in to change notification settings - Fork 54
simplelink_lpf3: Add support for CC2340R5 SoC #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
simplelink_lpf3: Add support for CC2340R5 SoC #55
Conversation
|
@jpanisbl Thank you for the PR, is there a platform addition pull request already submitted? If yes can you please update the hal_ti to this PR so that CI tests run against this PR? If not you will need to create the platform addition PR also in parallel, if you have test results please do share those as well |
@vaishnavachath We are working on Zephyr PR and will update west.yaml with revision from this PR. I suppose Zephyr draft PR will be sufficient to trigger CI. |
| ** Copyright 2006 -- 2012 (c) INVIA ** | ||
| ** ** | ||
| ** All rights reserved. Reproduction in whole or part is prohibited ** | ||
| ** without the written permission of the copyright owner ** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not really clear if this library is open source...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very much sounds like it's not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ya it was kind of rethorical :) but based on the BSD 3-clause header that follows, there is a -small- chance that TI actually owns the rights to re-license so @jpanisbl please clarify :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi. Thank you for the review.
We are going to remove this ECC lib before updating this PR. Some native Zephyr support for ECC will have to be used instead.
28d3837 to
cff5359
Compare
Zephyr draft PR created here: "Hello World" fail is not surprising: a python package named I'll fix the compliance error ( |
| // | ||
| //***************************************************************************** | ||
| // Bit-band access to address x bit number b using word access (32 bit) | ||
| #define HWREGBITW(x, b) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The CC23x0 device does not support bit banding. Consider removing this and check this isn't used anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SML892 Done by Stoyan -> PR updated.
cff5359 to
0c68fb3
Compare
|
Link to zephyr PR (which is not "draft" any more, it's now submitted for review): zephyrproject-rtos/zephyr#76441 |
|
@jpanisbl |
vaishnavachath
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need a README under simplelink_lpf3 directory detailing how these files were generated and how someone can update to a newer SDK , also please add details on what upstream SDK version these sources were generated, see
https://github.com/zephyrproject-rtos/hal_ti/blob/master/simplelink/README
|
Looking at the commit history, it looks like you have fixes and changes on top of original changes in your repo, this does not contribute much to the commit history in this repo, can you please squash those? Also if the sources are autogenerated from TI SDK sources, will recommend adding this information in commit message/README. |
928aecd to
e6c3c03
Compare
|
@jpanisbl The PR looks good to me, only few minor comments, if you can fix those that would be great:
|
|
@fabiobaltieri @kartben , if you have any other comments, please let know. |
Add initial lpf3 content to support cc2340r5. Currently, this includes files necessary to support power management and drivers. All files are added seperately from lpf2 content, which introduces a new folder structure in the TI HAL. Signed-off-by: Vebjorn Myklebust <[email protected]> Signed-off-by: Lars Thalian Morstad <[email protected]> Signed-off-by: Stoyan Bogdanov <[email protected]>
…ephyr Ports parts of simplelink's Driver Porting Layer to TI F3 devices on Zephyr. Taking inspiration from already existing DPL features, we allocate kernel objects using slab memory. This means the total number of k_event, k_msgq and k_thread objects is limited by a compile-time configuration. Signed-off-by: Lars Thalian Morstad <[email protected]>
Port MutexP, SemaphoreP, SwiP, and QueueP to LPF3. Add support for interrupts of INT_CPUIRQ4, INT_LRFD_IRQ0 and INT_LRFD_IRQ1 used by the RCL (TI's radio driver for F3 devices). Add AES and ECDH SimpleLink drivers and their dependencies. Signed-off-by: Vebjorn Myklebust <[email protected]> Signed-off-by: Lars Thalian Morstad <[email protected]> Signed-off-by: Min Xu <[email protected]>
Update simplelink lpf3 hal to the simplelink LPF3 SDK version 8.10.00.55. Signed-off-by: Vebjorn Myklebust <[email protected]>
Port RCL (radio control layer), the radio driver for TI F3 devices to Zephyr. This commit includes the source files of RCL, binary images of modem firmwares, and pre-generated radio settings for adc noise and BLE5. NOTE: currently, the radio settings for BLE5 are compiled as part of the driver library by default, which is a workaround for now. TI's BLE Stack controller requires the radio configuration C structs without the PHY abbreviation appended as a suffix. This commit removes the PHY abbreviation by disabling the "use_phy_abbreviation" when generating the radio settings in SmartRF Studio 8. Signed-off-by: Min Xu <[email protected]>
- Add some driverlib files to CMakeLists. - Add CLKCTL driver. - Add VIMS functionality for flash. VIMS function API is needed to enable/disable buffers and check for activity before read/write/erase. - Extend GPIO functionality with GPIOSetConfigDio and GPIOGetConfigDio. - Add UARTEnable. - Add support for DMA mode in ADC driver. Add support to ADC API for DMA Trigger Event Publisher (INT_EVENT2). The ADC module provides four interrupt sources (one for each conversion result storage register) that can be configured to source the DMA trigger. Signed-off-by: Stoyan Bogdanov <[email protected]> Signed-off-by: Julien Panis <[email protected]>
Detail how this directory was generated and how someone can update to a newer SDK. Also add details on what upstream SDK version these sources were generated. Signed-off-by: Vebjorn Myklebust <[email protected]> Signed-off-by: Julien Panis <[email protected]>
e6c3c03 to
d1e2ff8
Compare
Datasheet: https://www.ti.com/lit/ds/symlink/cc2340r5.pdf
TRM: https://www.ti.com/lit/ug/swcu193/swcu193.pdf