-
Notifications
You must be signed in to change notification settings - Fork 514
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
[TrackerM] Add platform support #2492
Conversation
if (rtsPin_ != PIN_INVALID) { | ||
Pinmux_Config(hal_pin_to_rtl_pin(rtsPin_), PINMUX_FUNCTION_UART_RTSCTS); | ||
PAD_PullCtrl(hal_pin_to_rtl_pin(rtsPin_), GPIO_PuPd_UP); | ||
} |
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.
This change was needed for the UART hardware flow control to work as expected.
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.
cc @XuGuohui
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.
See also CI failures.
Also add to https://github.com/particle-iot/device-os/blob/develop/system/src/system_cloud_internal.cpp#L1113
@avtolstoy Since tracker-m support cellular, it's not needed to mention it in the conditions there, right? |
b6f98a2
to
cea631c
Compare
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.
@keeramis There is comments need to be resovled, most of them are related to using HAL_PLATFORM_RTL872X
.
ac290e9
to
bcb67e8
Compare
3cd1f95
to
b54b421
Compare
if (rtsPin_ != PIN_INVALID) { | ||
Pinmux_Config(hal_pin_to_rtl_pin(rtsPin_), PINMUX_FUNCTION_UART_RTSCTS); | ||
PAD_PullCtrl(hal_pin_to_rtl_pin(rtsPin_), GPIO_PuPd_UP); | ||
} |
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.
cc @XuGuohui
7240d5f
to
9e01d92
Compare
uint8_t deviceId[HAL_DEVICE_ID_SIZE] = {}; | ||
hal_get_device_id(deviceId, sizeof(deviceId)); | ||
uint8_t* mac = deviceId + HAL_DEVICE_ID_SIZE - 6; | ||
mac[5] += 3; |
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.
Nit (can be done in a separate PR): let's add deviceid_hal_impl.h for all platforms (included from deviceid_hal.h, see other _impl.h headers as an example) and for rtl872x add a set of defines for MAC addresses to avoid having to use magic numbers:
HAL_DEVICE_MAC_WIFI_STA = 0
HAL_DEVICE_MAC_WIFI_AP = 1
HAL_DEVICE_MAC_BLE = 2
HAL_DEVICE_MAC_ETHERNET = 3
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.
Let's leave it as-is and I'll get the deviceid hal refactored along with getting the BLE MAC address.
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.
Yup, let's do that 👍
@keeramis I've pushed a commit as well to resolve the IRQn issues. |
- Rename bootloader/prebootloader/tron -> bootloader/prebootloader/rtl872x - Refactor platform defines - Move HAL_USART_SERIAL2 to respective platform header files - More
382b51c
to
bc26a6d
Compare
Contributors
Description
Adds support for Tracker-M platform
Solution
Add new
PLATFORM_ID
for trackerm platform, largely based off of P2 module/platform definitionsSteps to Test
Build using new platform and test with trackerm hardware:
make PLATFORM=trackerm APP=tinker clean all
References
SC-105590
SC-107631
Completeness