Links prstlib and restructures project to match other samples

This commit is contained in:
rbaron 2022-12-04 18:05:07 +01:00
parent d8322c9162
commit 55808ed7e1
4 changed files with 31 additions and 10 deletions

View file

@ -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)

View file

@ -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>

View file

@ -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, \

View file

@ -0,0 +1,16 @@
{
"folders": [
{
"path": "."
},
{
"path": "../../prstlib"
}
],
"settings": {
"C_Cpp.autoAddFileAssociations": false,
"nrf-connect.applications": [
"${workspaceFolder}"
]
}
}