-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ease the integration of Zenoh-Pico in native Zephyr projects (#180)
* Zephyr build integrated with Cmake * Allow both Zephyr 2.X via PlatformIO and Zephyr 3.X * Reorganize CMake output messages
- Loading branch information
1 parent
55913c3
commit a0d3ec6
Showing
5 changed files
with
112 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,12 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
|
||
#if defined(ZENOH_PIO) | ||
#include <drivers/uart.h> | ||
#else | ||
#include <zephyr/drivers/uart.h> | ||
#endif | ||
|
||
#include <netdb.h> | ||
#include <stdbool.h> | ||
#include <stddef.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,14 @@ | |
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
|
||
#if defined(ZENOH_PIO) | ||
#include <kernel.h> | ||
#include <random/rand32.h> | ||
#else | ||
#include <zephyr/kernel.h> | ||
#include <zephyr/random/rand32.h> | ||
#endif | ||
|
||
#include <stddef.h> | ||
#include <sys/time.h> | ||
#include <unistd.h> | ||
|