-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
zigbee: Add zigbee support #2208
Conversation
All checks are passing now. checkpatch (informational only, not a failure)
Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
460a232
to
a3146c7
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.
Applied my edits, so I'm approving.
Please check my commit and squash it.
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.
Gone through the first commit so far, left some feedback. It seems that checkpatch covered also a good amount of issues, please fix those.
subsys/zigbee/CMakeLists.txt
Outdated
zephyr_sources(osif/zb_nrf_transceiver.c) | ||
zephyr_sources(osif/zb_nrf_crypto.c) | ||
zephyr_sources(osif/zb_nrf_pwr_mgmt.c) | ||
zephyr_sources(osif/nrf_ecb_driver.c) |
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.
Note: we should soon get this into fw-nrfconnect-zephyr
, please remove it from the PR after it's merged.
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.
Can we remove it now? You already have the Zephyr version in the tree. Or do you prefer to leave it as it is for the initial release? @wbober?
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.
@rlubos I would be keen on ditching this. @maciekfabia what do you think? This should be fairly simple?
subsys/zigbee/Kconfig
Outdated
|
||
config ZBOSS_DEFAULT_THREAD_STACK_SIZE | ||
int "Stack size of ZBOSS Zephyr task" | ||
default 2048 #ToDo: TBD |
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.
So, have you found out a proper value yet?
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.
We will use this value. #Todo removed
LOG_MODULE_REGISTER(zigbee_helpers, CONFIG_ZIGBEE_HELPERS_LOG_LEVEL); | ||
|
||
/* Rejoin-procedure related variables. */ | ||
static zb_uint8_t stack_initialised = ZB_FALSE; |
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.
Shouldn't this be bool
? Also, since these variables do not interface any zboss APIs, why not use native types instead (bool
, u8_t
etc)?
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.
I changed variables in this group to bool
#endif | ||
} | ||
|
||
int to_hex_str(char *out, uint16_t out_size, const uint8_t *in, |
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.
General note: we should rather use kernel types in NCS, wherever possible (u16_t
etc.), but you probably already noticed from the checkpatch output.
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.
fixed
sizeof(zb_ieee_addr_t), true); | ||
} | ||
|
||
uint8_t parse_hex_digit(const char c) |
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.
Zephyr provides some utils for hex string conversion, please consider using them to avoid code duplication:
https://github.com/zephyrproject-rtos/zephyr/blob/master/include/sys/util.h#L153
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.
parse_hex_digit
replaced with char2hex
from sys/util.h
.
Other string-hex functions in this file can also convert in reverse order. They cannot be fully replaced because it's not available in their counterparts in utils.h
but they probably could be much shorter if they used util.h
functions.
I think it can be postponed to subsequent pull requests
subsys/zigbee/osif/zb_nrf_platform.c
Outdated
#include <init.h> | ||
|
||
#include "zb_nrf_platform.h" | ||
#include "zboss_api.h" |
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.
#include <zboss_api.h>
LOG_ERR("Fatal error occurred"); | ||
k_fatal_halt(K_ERR_KERNEL_PANIC); | ||
} | ||
|
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.
Extra empty line.
subsys/zigbee/osif/zb_nrf_platform.c
Outdated
/* Configure event/signals to wait for in wait_for_event function */ | ||
static struct k_poll_event wait_events[] = { | ||
K_POLL_EVENT_INITIALIZER(K_POLL_TYPE_SIGNAL, | ||
K_POLL_MODE_NOTIFY_ONLY, |
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.
Looks like the indentation gone wild.
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.
fixed after checkpatch report
subsys/zigbee/osif/zb_nrf_pwr_mgmt.c
Outdated
ZB_SET_TRACE_OFF(); | ||
|
||
/* Disable Zigbee stack-related peripherals to save energy. */ | ||
/*zb_osif_priph_disable();*/ |
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.
Please remove dead code.
subsys/zigbee/osif/zb_nrf_timer.c
Outdated
* SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic | ||
*/ | ||
|
||
/* TODO: Change function names. The 'nrf52' prefix should be removed */ |
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.
Seems to be done already?
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.
yes, the comment removed
@@ -0,0 +1,17 @@ | |||
/* Copyright (c) 2019 Nordic Semiconductor ASA |
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.
2020
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.
Also, the file has been renamed to reflect the new board name
@@ -0,0 +1,32 @@ | |||
/* Copyright (c) 2019 Nordic Semiconductor ASA |
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.
2020
#include <zboss_api.h> | ||
#include <addons/zboss_api_addons.h> | ||
#include <zb_mem_config_med.h> | ||
#include <zigbee_helpers.h> |
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.
If zigbee_helpers.h
is supposed to be a public header and used in applications, it should be moved to the include
directory then. include/zigbee/zigbee_helpers.h
?
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.
We are going to move zigbee_helpers.h
to include
directory but it requires some cleaning, some functions need to be removed/moved to other files, some need to be rewritten to make use of zephyr utilities.
After this is done the file could be moved and documented in NCS documentation but for this PR I'd prefer it to stay at its current location
@@ -0,0 +1,32 @@ | |||
/* Copyright (c) 2019 Nordic Semiconductor ASA |
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.
2020
Looks good overall, some nits from my side plus you need to sort out the CI failures, otherwise we coul d get it in (once nrfxlib counterpart is merged). |
c46d505
to
4a353ef
Compare
d088983
to
d62fdc1
Compare
d0b6251
to
dc03d60
Compare
had a very quick look and have two comments:
|
Why so? I don't think there's a well-established convention for that in Zephyr (nor in NCS). Some samples use |
subsys/zigbee/CMakeLists.txt
Outdated
zephyr_include_directories(common) | ||
zephyr_include_directories(osif) | ||
zephyr_include_directories(zb_error) | ||
|
||
# Source files | ||
zephyr_sources(osif/zb_nrf_platform.c) | ||
zephyr_sources(osif/zb_nrf_logger.c) | ||
zephyr_sources(osif/zb_nrf_nvram.c) | ||
zephyr_sources(osif/zb_nrf_timer.c) | ||
zephyr_sources(osif/zb_nrf_transceiver.c) | ||
zephyr_sources(osif/zb_nrf_crypto.c) | ||
zephyr_sources(osif/zb_nrf_pwr_mgmt.c) | ||
zephyr_sources(osif/nrf_ecb_driver.c) |
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 should be in independent lib, please use zephyr_library
.
No need that all those files are placed directly in libzephyr.a
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.
fixed
bool "Include functions for CLI logging" | ||
default y | ||
help | ||
Include functions for CLI logging. |
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 is not including log functions for the user.
Instead, it enables logging inside the Zigbee subsys, correct ?
Help text is not clear on this.
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 is probably due to historical reasons. This controls the eprxzcl
component from nRF5 for T&Z SDK.
This dumps all received ZCL packets: eprxzcl == EndPoint R(x)eceive ZCL - packet dump
.
By default, it was included in the Zigbee CLI example.
add_definitions(-Wno-packed-bitfield-compat) | ||
add_definitions(-DTIMER_DEFAULT_CONFIG_IRQ_PRIORITY=6) | ||
|
||
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) |
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.
Please update to use find_package(Zephyr ...)
|
||
cmake_minimum_required(VERSION 3.8) | ||
|
||
add_definitions(-Wno-packed-bitfield-compat) |
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.
Why is this needed here.
In Zephyr, those warnings are handled in the toolchain setup:
https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/cmake/compiler/gcc/target_warnings.cmake
and can be controlled using -DW=[1|2|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.
This warning is generated by ZBOSS headers. The same definition is inside ZBOSS's CMakeLists.txt file. I'd remove it here and move the discussion to the nrfxlib's PR.
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.
Line removed.
This warning suppression is not specified in a sample or test but propagated from ZBOSS CMakeLists.txt
cmake_minimum_required(VERSION 3.8) | ||
|
||
add_definitions(-Wno-packed-bitfield-compat) | ||
add_definitions(-DTIMER_DEFAULT_CONFIG_IRQ_PRIORITY=6) |
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 looks like something that should have been in a configuration file.
Kconfig ?
Secondly, I can't find the place where it is used.
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 needed any more. Removed
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic | ||
# | ||
|
||
cmake_minimum_required(VERSION 3.8) |
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.
cmake_minimum_required(VERSION 3.8) | |
cmake_minimum_required(VERSION 3.13) |
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.
updated
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/boards/${BOARD}.overlay") | ||
set(DTC_OVERLAY_FILE "${DTC_OVERLAY_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/boards/${BOARD}.overlay") | ||
endif() |
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 will not work with when using deprecated board names nor aliased board names.
Please remove.
Board overlays are handled in Zephyr build system, when named correctly.
See https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/cmake/app/boilerplate.cmake#L463-L471
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 overlay files have been combined into one and renamed to app.overlay
endif() | ||
|
||
include($ENV{ZEPHYR_BASE}/../nrf/cmake/boilerplate.cmake) | ||
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) |
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.
Please use: find_package(Zephyr ...)
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.
updated
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/dts.overlay") | ||
set(DTC_OVERLAY_FILE "${CMAKE_CURRENT_SOURCE_DIR}/dts.overlay") | ||
endif() |
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.
Remove those lines and rename dts.overlay
to app.overlay
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.
done
endif() | ||
|
||
include($ENV{ZEPHYR_BASE}/../nrf/cmake/boilerplate.cmake) | ||
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) |
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.
Please use: find_package(Zephyr ...)
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.
updated
We (I) have been trying to let samples print to the console using The first is that A second reason is readability of the output. When logging is enabled, it is enabled system-wide; that can generate a lot of output coming from subsystems and libraries (unless explicitely disabled, one by one). I argue that when running a sample, the user doesn't care much about what's happening in all subsys and libs in use, but more about what the sample is doing. If a sample prints 20 lines after booting, it's harder for the user to see if it is behaving as expected, because they have to "fish" the lines they are interested in among 20. Instead, if logging is not enabled (or enabled only for wrn/err/assert via
|
A little offtop. @lemrey The point is, we have not written down any "best practicies" guide for the samples, so it's hard to enforce such requests based on reviewer preference. For intstance, recently I was reviewing PR upstream, where it was explicitly requested to use logger in the sample (even though it was only writng down a greeting message), there's no consensus. I'm not saying we should follow upstream Zephyr blindy here. But if we want to have a NCS set of rules, we should at least write them down and get accepted, only then we'll have a basis to enforce them. |
dc03d60
to
7e32f54
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.
This looks really good!
But we're missing a few links within the documentation. And I guess library documentation and the third sample are planned for later?
doc/nrf/user_guides.rst
Outdated
@@ -21,3 +21,4 @@ They introduce you to important concepts and guide you through developing your a | |||
ug_bootloader | |||
ug_unity_testing | |||
ug_thread | |||
ug_zigbee |
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 one and the Thread user guide should go under ug_thingy91 (to keep the "Working with" user guides together).
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.
Moved.
|
||
Zigbee is a portable, low-power software networking protocol that provides connectivity over 802.15.4-based mesh network. | ||
It also defines an application layer that provides interoperability among all vendors. | ||
|
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.
Can we link somewhere for more information? (Probably the Zigbee Alliance?)
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.
Added, good point.
doc/nrf/ug_zigbee.rst
Outdated
Introduction | ||
************ | ||
|
||
Zigbee is a portable, low-power software networking protocol that provides connectivity over 802.15.4-based mesh network. |
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.
Zigbee is a portable, low-power software networking protocol that provides connectivity over 802.15.4-based mesh network. | |
Zigbee is a portable, low-power software networking protocol that provides connectivity over 802.15.4-based mesh networks. |
or
Zigbee is a portable, low-power software networking protocol that provides connectivity over 802.15.4-based mesh network. | |
Zigbee is a portable, low-power software networking protocol that provides connectivity over an 802.15.4-based mesh network. |
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.
Went for the 2nd one.
doc/nrf/ug_zigbee.rst
Outdated
Zigbee is a portable, low-power software networking protocol that provides connectivity over 802.15.4-based mesh network. | ||
It also defines an application layer that provides interoperability among all vendors. | ||
|
||
In combination with Zephyr RTOS and |NCS|, Zigbee allows for easy development of low-power connected solutions. |
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.
Zephyr is part of the NCS package, thus either just "In combination with |NCS|," or "In combination with |NCS| and the integrated Zephyr RTOS,".
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.
2nd option adopted.
|
||
See :ref:`zigbee_samples` for the list of available Zigbee samples. | ||
|
||
.. |zboss_lib| replace:: The |NCS|'s Zigbee protocol uses the ZBOSS library, a third-party precompiled Zigbee stack. |
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.
Link to ZBOSS?
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.
Yes, once it's available. Will work on this with @b-gent .
|
||
This Zigbee network coordinator sample establishes the Zigbee network and commissions Zigbee devices that want to join it. | ||
|
||
You can use this sample together with :ref:`Zigbee light bulb <zigbee_light_bulb_sample>` and Zigbee light switch to set up a basic Zigbee network. |
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 can use this sample together with :ref:`Zigbee light bulb <zigbee_light_bulb_sample>` and Zigbee light switch to set up a basic Zigbee network. | |
You can use this sample together with the :ref:`Zigbee light bulb <zigbee_light_bulb_sample>` and Zigbee light switch to set up a basic Zigbee network. |
|
||
* One or both of the following samples: | ||
|
||
* The :ref:`Zigbee light bulb <zigbee_light_bulb_sample>` application programmed on one or more separate devices. |
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 :ref:`Zigbee light bulb <zigbee_light_bulb_sample>` application programmed on one or more separate devices. | |
* The :ref:`Zigbee light bulb <zigbee_light_bulb_sample>` sample programmed on one or more separate devices. |
samples/zigbee/light_bulb/README.rst
Outdated
* |nRF52840Dongle| | ||
* |nRF52833DK| | ||
|
||
* The :ref:`Zigbee network coordinator <zigbee_network_coordinator_sample>` application programmed on one separate device. |
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 :ref:`Zigbee network coordinator <zigbee_network_coordinator_sample>` application programmed on one separate device. | |
* The :ref:`Zigbee network coordinator <zigbee_network_coordinator_sample>` sample programmed on one separate device. |
Indicates whether the network is open or closed. | ||
|
||
.. note:: | ||
When you use the coordinator on the |nRF52840Dongle|, it is the LED 3 that informs about the successful network joining. |
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.
Same question as for the other sample.
|
||
After programming the sample to your development kit, test it by performing the following steps: | ||
|
||
1. Turn on the coordinator development kit. |
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.
same as above ;)
I agree @rlubos; we had a draft for these guidelines in Confluence, perhaps we could make it available so that it is visible for everybody? |
7e32f54
to
8cc61dc
Compare
@ru-fu Light switch sample and ZBOSS lib are in separate PRs. |
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.
@ru-fu , thank you for your comments and feedback. I've implemented the changes in a review branch: https://github.com/maciekfabia/fw-nrfconnect-nrf/tree/add_zigbee_subsystem_review
This will be merged into this one.
fb61a37
to
05a3247
Compare
We are going to do so but it requires some cleaning, refinement and documenting. For this PR I'd prefer them to stay at its current location and move them in next pull requests |
@tejlmand, we addressed all comments, could you please take a look? |
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.
Looking better, but still a couple of comments to be addressed.
zephyr_interface_library_named(zigbee) | ||
|
||
target_include_directories(zigbee INTERFACE common) | ||
target_include_directories(zigbee INTERFACE osif) | ||
target_include_directories(zigbee INTERFACE zb_error) |
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.
Why is an interface target needed here ?
and not simple using zephyr_library_include_directories()
on the lib below.
Nevermind. Found APP_LINK_WITH_ZIGBEE
in Kconfig.
Disregard this comment.
zephyr_include_directories(${ZEPHYR_BASE}/../nrf/subsys/zigbee/osif) | ||
zephyr_include_directories(${ZEPHYR_BASE}/../nrfxlib/zboss/include) | ||
zephyr_include_directories(${ZEPHYR_BASE}/../nrfxlib/zboss/include/osif) |
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 should be possible to use: ${ZEPHYR_NRFXLIB_MODULE_DIR}
here, instead of: ${ZEPHYR_BASE}/../nrfxlib
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.
Replaced with ${NRFXLIB_DIR}
for now. Will be replaced with ${ZEPHYR_NRFXLIB_MODULE_DIR}
once it's available in fw-nrfconnect-zephyr
target_sources(app PRIVATE | ||
src/main.c | ||
${ZEPHYR_BASE}/../nrf/subsys/zigbee/osif/zb_nrf_crypto.c | ||
${ZEPHYR_BASE}/../nrf/subsys/zigbee/osif/nrf_ecb_driver.c |
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 should be possible to use: ${ZEPHYR_NRF_MODULE_DIR}
here, instead of: ${ZEPHYR_BASE}/../nrf
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.
Replaced with ${NRF_DIR}
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/dts.overlay") | ||
set(DTC_OVERLAY_FILE "${CMAKE_CURRENT_SOURCE_DIR}/dts.overlay") | ||
endif() |
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.
Lines are still present.
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.
I have no further comments for now. Let's address the remaining issues (moving the header to public location, switching to printk) in seprate PRs, if time permits, since they're not ciritcal. And it's really cumbersome to deal with such a large PR.
sorry, my mistake. Removed |
7896c95
to
b1a97e3
Compare
@maciekfabia Please update |
b1a97e3
to
7eb99d4
Compare
I'd rather have the public headers under |
Thanks @lemrey, @maciekfabia promised to fix this later: #2208 (comment) |
7eb99d4
to
80fc3b6
Compare
Add zigbee subsystem and related tests Signed-off-by: Maciej Fabia <[email protected]>
Add Zigbee samples: - network coordinator - light bulb Signed-off-by: Maciej Fabia <[email protected]>
80fc3b6
to
ef95492
Compare
Add owners for zigbee subsys, samples and tests Signed-off-by: Maciej Fabia <[email protected]>
ef95492
to
497d509
Compare
@carlescufi Can we merge this please? |
Add Zigbee support with accompanying samples.
It uses ZBOSS stack that has a separate pull request:
nrfconnect/sdk-nrfxlib#166