Skip to content

Commit 5dc54f2

Browse files
authored
Merge pull request #14 from bacnet-stack/bugfix/sample-profile-b-ss-3.7
Updated sample-profile-b-ss to function with Zephyr 3.7.0
2 parents 056257a + de839fb commit 5dc54f2

File tree

20 files changed

+90
-56
lines changed

20 files changed

+90
-56
lines changed

zephyr/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ message(STATUS "BACNETSTACK: MAX_TSM_TRANSACTIONS \"${CONFIG_BACNET_MAX_TSM_TRAN
3232
message(STATUS "BACNETSTACK: MAX_ADDRESS_CACHE \"${CONFIG_BACNET_MAX_ADDRESS_CACHE}\"")
3333
message(STATUS "BACNETSTACK: MAX_CHARACTER_STRING_BYTES \"${CONFIG_BACNET_MAX_CHARACTER_STRING_BYTES}\"")
3434
message(STATUS "BACNETSTACK: MAX_OCTET_STRING_BYTES \"${CONFIG_BACNET_MAX_OCTET_STRING_BYTES}\"")
35+
message(STATUS "BACNETSTACK: CONFIG_BACNETSTACK_LOG_LEVEL \"${CONFIG_BACNETSTACK_LOG_LEVEL}\"")
3536

3637
if(NOT (CONFIG_BACDL_ETHERNET OR
3738
CONFIG_BACDL_MSTP OR

zephyr/Kconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,17 @@ config BACDL_BIP
7575
bool "BACnet BIP datalink"
7676
select NETWORKING
7777
select NET_SOCKETS
78+
select NET_SOCKETS_POSIX_NAMES
7879
select NET_UDP
7980
select NET_IPV4
8081
help
8182
Enable BACnet BIP datalink
8283

8384
config BACDL_BIP6
84-
bool "BACnet BIP6"
85+
bool "BACnet BIP6 datalink"
8586
select NETWORKING
8687
select NET_SOCKETS
88+
select NET_SOCKETS_POSIX_NAMES
8789
select NET_UDP
8890
select NET_IPV6
8991
help

zephyr/include/bacnet-config.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
/**
22
* @file
33
* @brief Port specific configuration for BACnet Stack for Zephyr OS
4-
* @author Steve Karg
4+
* @author Steve Karg <[email protected]>
55
* @date 2024
6-
* @section LICENSE
7-
*
8-
* Copyright (C) 2024 Steve Karg <[email protected]>
9-
*
10-
* SPDX-License-Identifier: MIT
6+
* @copyright SPDX-License-Identifier: Apache-2.0
117
*/
128
#ifndef BACNET_PORTS_ZEPHYR_BACNET_CONFIG_H
139
#define BACNET_PORTS_ZEPHYR_BACNET_CONFIG_H
@@ -18,5 +14,4 @@
1814

1915
/* provides platform specific define for ARRAY_SIZE */
2016
#include <zephyr/sys/util.h>
21-
2217
#endif

zephyr/include/bacnet_basic/bacnet_basic.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ extern "C" {
1717
#endif /* __cplusplus */
1818

1919
void bacnet_basic_init(void);
20-
void bacnet_basic_init_callback_set(bacnet_basic_callback callback,
20+
void bacnet_basic_init_callback_set(bacnet_basic_callback callback,
2121
void *context);
2222

2323
void bacnet_basic_task(void);
24-
void bacnet_basic_task_callback_set(bacnet_basic_callback callback,
24+
void bacnet_basic_task_callback_set(bacnet_basic_callback callback,
2525
void *context);
2626

2727
unsigned long bacnet_basic_uptime_seconds(void);

zephyr/include/bacnet_basic/bacnet_port.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
22
* @file
3-
* @brief The BACnet datalink tasks for handling the device specific
3+
* @brief The BACnet datalink tasks for handling the device specific
44
* data link network port layer
55
* @author Steve Karg <[email protected]>
66
* @date April 2024
7-
* @copyright SPDX-License-Identifier: MIT
7+
* @copyright SPDX-License-Identifier: Apache-2.0
88
*/
99
#ifndef BACNET_PORT_H
1010
#define BACNET_PORT_H

zephyr/include/bacnet_basic/bacnet_port_ipv4.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
22
* @file
3-
* @brief API for the BACnet datalink tasks for handling the device specific
3+
* @brief API for the BACnet datalink tasks for handling the device specific
44
* data link network port layer
55
* @author Steve Karg <[email protected]>
66
* @date April 2024
7-
* @copyright SPDX-License-Identifier: MIT
7+
* @copyright SPDX-License-Identifier: Apache-2.0
88
*/
99
#ifndef BACNET_PORT_IPV4_H
1010
#define BACNET_PORT_IPV4_H

zephyr/include/bacnet_basic/bacnet_port_ipv6.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
22
* @file
3-
* @brief The BACnet/IPv6 datalink tasks for handling the device specific
3+
* @brief The BACnet/IPv6 datalink tasks for handling the device specific
44
* data link network port layer
55
* @author Steve Karg <[email protected]>
66
* @date April 2024
7-
* @copyright SPDX-License-Identifier: MIT
7+
* @copyright SPDX-License-Identifier: Apache-2.0
88
*/
99
#ifndef BACNET_PORT_IPV6_H
1010
#define BACNET_PORT_IPV6_H
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* @file
3+
* @brief Logging level configuration for BACnet Stack for Zephyr OS
4+
* @author Steve Karg <[email protected]>
5+
* @date April 2024
6+
* @copyright SPDX-License-Identifier: Apache-2.0
7+
*/
8+
#ifndef BACNET_OSIF_BACNET_LOG_H
9+
#define BACNET_OSIF_BACNET_LOG_H
10+
#include <zephyr/logging/log.h>
11+
#include <zephyr/logging/log_ctrl.h>
12+
13+
#ifndef CONFIG_BACNETSTACK_LOG_LEVEL
14+
#define CONFIG_BACNETSTACK_LOG_LEVEL LOG_LEVEL_NONE
15+
#endif
16+
17+
#endif

zephyr/include/bacnet_settings/bacnet_settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @brief API for Get/Set of BACnet application encoded settings handlers
44
* @author Steve Karg <[email protected]>
55
* @date May 2024
6-
* @copyright SPDX-License-Identifier: MIT
6+
* @copyright SPDX-License-Identifier: Apache-2.0
77
*/
88
#ifndef BACNET_SETTINGS_H
99
#define BACNET_SETTINGS_H

zephyr/include/bacnet_settings/bacnet_storage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* non-volatile object data
55
* @author Steve Karg <[email protected]>
66
* @date May 2024
7-
* @copyright SPDX-License-Identifier: MIT
7+
* @copyright SPDX-License-Identifier: Apache-2.0
88
*/
99
#ifndef BACNET_STORAGE_H
1010
#define BACNET_STORAGE_H

0 commit comments

Comments
 (0)