-
Notifications
You must be signed in to change notification settings - Fork 8.1k
stm32wbax 802154 driver support #95376
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
Changes from all commits
15d36ca
c0514c0
a1d1e52
a53b239
8f63660
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# STMicroelectronics STM32WBAxx 802.15.4 configuration options | ||
|
||
# Copyright (c) 2025 STMicroelectronics | ||
|
||
menuconfig IEEE802154_STM32WBA | ||
bool "STM32WBA series IEEE 802.15.4 Driver" | ||
default y | ||
depends on DT_HAS_ST_STM32WBA_IEEE802154_ENABLED | ||
|
||
if IEEE802154_STM32WBA | ||
|
||
config IEEE802154_STM32WBA_RX_BUFFERS | ||
int "STM32WBA 802.15.4 receive buffers" | ||
default 16 | ||
range 16 128 | ||
help | ||
Number of buffers in 802.15.4 driver serialization host's receive queue. | ||
Increase this number if you are expected to be in a noisy environment, handling many | ||
end-devices and you have sufficient RAM to allocate memory to buffers. | ||
If this value is increased, IEEE802154_STM32WBA_RX_STACK_SIZE value might require | ||
to be updated as well. | ||
|
||
config IEEE802154_STM32WBA_RX_STACK_SIZE | ||
int "Driver RX thread stack size" | ||
default 800 | ||
help | ||
This option sets the driver's stack size for its internal RX thread. | ||
The default value should be sufficient, but in case it proves to be | ||
too low, adjust as needed. | ||
etienne-lms marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
config IEEE802154_STM32WBA_CSMA_CA_ENABLED | ||
bool "CSMA-CA configuration" | ||
default y | ||
help | ||
This option enables the CSMA-CA feature. | ||
|
||
config IEEE802154_STM32WBA_INIT_PRIO | ||
int "STM32WBA IEEE 802.15.4 initialization priority" | ||
default 80 | ||
help | ||
Set the initialization priority number. Do not mess with it unless | ||
you know what you are doing. | ||
|
||
config IEEE802154_STM32WBA_DELAY_TRX_ACC | ||
int "Clock accuracy for delayed operations" | ||
default 20 | ||
range 0 255 | ||
help | ||
Accuracy of the clock used for scheduling radio delayed operations (delayed transmission | ||
or delayed reception), in ppm. | ||
Comment on lines
+44
to
+50
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe this should come from DTS There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A possible better alternative is to use rate-limited logging and to log a count of how many rx errors there are, cumulatively |
||
|
||
config IEEE802154_STM32WBA_LOG_RX_FAILURES | ||
bool "Frame reception failures logging" | ||
help | ||
There are few cases where the frame reception failure can happen because of | ||
internal causes. These cases are reported forward by general code error. | ||
|
||
This option enables logging the reason of frame reception failure. | ||
It can be helpful for the network traffic analysis but it generates also | ||
a lot of log records in a stressed environment. | ||
|
||
config NET_L2_CUSTOM_IEEE802154_STM32WBA | ||
bool "Use ST MAC as L2" | ||
default y | ||
depends on NET_L2_CUSTOM_IEEE802154 | ||
help | ||
Custom STM32WBA series IEEE 802.15.4 L2 Implementation. | ||
|
||
endif # IEEE802154_STM32WBA |
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.
You're a priori missing a
zephyr,ieee802154 = &ieee802154;
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 is present in dts/arm/st/wba/stm32wba.dtsi