Zephyr 3.7.0 integration fixes: (#723) (#724)

- Update west.yml
- Update samples.yaml to new syntax, board names
- Patches to ports/zephyr (some stubs)

Verified by:

1. ./zephyr/scripts/twister -p unit_testing -T bacnet-stack/zephyr/tests

2. ./zephyr/scripts/twister -T bacnet-stack/zephyr/samples/ --integration

Fix #721

Co-authored-by: Gregory Shue <gregory.shue@legrand.com>
This commit is contained in:
Greg Shue
2024-08-15 05:24:09 -07:00
committed by GitHub
parent 40c5570d64
commit 2d7a2961a2
6 changed files with 21 additions and 6 deletions
+4 -1
View File
@@ -11,6 +11,7 @@
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/net/net_if.h>
#include <zephyr/net/net_ip.h>
#include <zephyr/net/socket.h>
#include <zephyr/net/socket_select.h>
@@ -321,7 +322,7 @@ uint16_t bip_receive(
/* see if there is a packet for us */
if (zsock_select(max + 1, &read_fds, NULL, NULL, &select_timeout) > 0) {
socket =
FD_ISSET(BIP_Socket, &read_fds) ? BIP_Socket : BIP_Broadcast_Socket;
ZSOCK_FD_ISSET(BIP_Socket, &read_fds) ? BIP_Socket : BIP_Broadcast_Socket;
received_bytes = zsock_recvfrom(socket, (char *)&npdu[0], max_npdu, 0,
(struct sockaddr *)&sin, &sin_len);
} else {
@@ -406,6 +407,7 @@ int bip_send_pdu(BACNET_ADDRESS *dest,
*/
void bip_set_interface(char *ifname)
{
#if 0 //{TODO: Fix build errors for native_posix
struct net_if *iface = 0;
int index = -1;
uint8_t x = 0;
@@ -490,6 +492,7 @@ void bip_set_interface(char *ifname)
} else {
LOG_ERR("%s:%d - Failed to set iface", THIS_FILE, __LINE__);
}
#endif //}TODO:
}
static int createSocket(struct sockaddr_in *sin)
+1
View File
@@ -11,6 +11,7 @@
#include <zephyr/init.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/net/net_if.h>
#include <zephyr/net/net_ip.h>
#include <zephyr/net/socket.h>
#include <zephyr/net/socket_select.h>