Links prstlib and restructures project to match other samples
This commit is contained in:
parent
d8322c9162
commit
55808ed7e1
4 changed files with 31 additions and 10 deletions
|
|
@ -1,19 +1,19 @@
|
|||
#
|
||||
# Copyright (c) 2021 Nordic Semiconductor ASA
|
||||
#
|
||||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
|
||||
#
|
||||
|
||||
cmake_minimum_required(VERSION 3.20.0)
|
||||
|
||||
# Pull in the dts/ and boards/ from prstlib.
|
||||
set(DTS_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../prstlib)
|
||||
set(BOARD_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../prstlib)
|
||||
|
||||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
|
||||
project("Zigbee application template")
|
||||
project("b-parasite Zigbee sample")
|
||||
|
||||
include_directories(src)
|
||||
|
||||
# NORDIC SDK APP START
|
||||
target_sources(app PRIVATE
|
||||
src/main.c
|
||||
)
|
||||
|
||||
target_include_directories(app PRIVATE include)
|
||||
# NORDIC SDK APP END
|
||||
add_subdirectory(../../prstlib prstlib)
|
||||
target_include_directories(app PRIVATE ../../prstlib/include)
|
||||
target_link_libraries(app PUBLIC prstlib)
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
*/
|
||||
|
||||
#include <dk_buttons_and_leds.h>
|
||||
#include <prstlib/adc.h>
|
||||
#include <zb_nrf_platform.h>
|
||||
#include <zboss_api.h>
|
||||
#include <zboss_api_addons.h>
|
||||
|
|
|
|||
|
|
@ -35,6 +35,10 @@
|
|||
/** Number of attribute for reporting on Range extender device */
|
||||
#define ZB_RANGE_EXTENDER_REPORT_ATTR_COUNT 0
|
||||
|
||||
typedef struct {
|
||||
zb_uint16_t rel_humidity;
|
||||
} prst_rel_humidity_t;
|
||||
|
||||
#define ZB_DECLARE_RANGE_EXTENDER_CLUSTER_LIST( \
|
||||
cluster_list_name, \
|
||||
basic_attr_list, \
|
||||
16
code/nrf-connect/samples/zigbee/zigbee.code-workspace
Normal file
16
code/nrf-connect/samples/zigbee/zigbee.code-workspace
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": "."
|
||||
},
|
||||
{
|
||||
"path": "../../prstlib"
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
"C_Cpp.autoAddFileAssociations": false,
|
||||
"nrf-connect.applications": [
|
||||
"${workspaceFolder}"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue