Skip to content

Commit da3c91f

Browse files
committed
drivers: Add ieee802154_gecko driver
This commit adds ieee802154_gecko driver for SiLabs Wireless Gecko family. Signed-off-by: Piotr Mienkowski <[email protected]>
1 parent b1b4dfc commit da3c91f

File tree

5 files changed

+638
-0
lines changed

5 files changed

+638
-0
lines changed

drivers/ieee802154/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ zephyr_sources_ifdef(CONFIG_IEEE802154_CC1200 ieee802154_cc1200.c)
99
zephyr_sources_ifdef(CONFIG_IEEE802154_CC13XX_CC26XX ieee802154_cc13xx_cc26xx.c)
1010
zephyr_sources_ifdef(CONFIG_IEEE802154_RF2XX ieee802154_rf2xx.c)
1111
zephyr_sources_ifdef(CONFIG_IEEE802154_RF2XX ieee802154_rf2xx_iface.c)
12+
13+
if(CONFIG_IEEE802154_GECKO)
14+
zephyr_sources(ieee802154_gecko.c)
15+
zephyr_link_libraries(RAIL_LIB)
16+
endif()

drivers/ieee802154/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ config IEEE802154_RAW_MODE
2323

2424
source "drivers/ieee802154/Kconfig.cc2520"
2525

26+
source "drivers/ieee802154/Kconfig.gecko"
27+
2628
source "drivers/ieee802154/Kconfig.kw41z"
2729

2830
source "drivers/ieee802154/Kconfig.mcr20a"

drivers/ieee802154/Kconfig.gecko

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# SiLabs Gecko IEEE 802.15.4 Driver configuration options
2+
3+
# Copyright (c) 2020 Piotr Mienkowski
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
menuconfig IEEE802154_GECKO
7+
bool "SiLabs Gecko IEEE 802.15.4 Driver"
8+
depends on NETWORKING && SOC_GECKO_HAS_IEEE802154_RADIO
9+
select SOC_GECKO_RAIL_LIB
10+
select SOC_GECKO_RAIL_LIB_IEEE802154
11+
12+
if IEEE802154_GECKO
13+
14+
config IEEE802154_GECKO_DRV_NAME
15+
string "SiLabs Gecko Driver's name"
16+
default "IEEE802154_GECKO"
17+
help
18+
This option sets the driver name. Do not change it unless
19+
you know what you are doing.
20+
21+
config IEEE802154_GECKO_TXPOWER_RAW
22+
int "Radio TX Power"
23+
default 254
24+
help
25+
Standard transmission power in RAIL raw units. Value 254 indicates the
26+
highest power level available on the current PA.
27+
28+
config IEEE802154_GECKO_INIT_PRIORITY
29+
int "SiLabs Gecko Driver initialization priority"
30+
default 80
31+
help
32+
Set the initialization priority number. Do not change it unless
33+
you know what you are doing. It has to start before the net stack.
34+
35+
endif # IEEE802154_GECKO

0 commit comments

Comments
 (0)