summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaureen Helm <maureen.helm@intel.com>2022-09-16 12:31:06 -0500
committerDamien George <damien@micropython.org>2024-10-02 00:07:46 +1000
commit4e59a5190296cabd1be8de158d18d22444381958 (patch)
tree558a6c04dccc7acd05860d38fb6ab5d7fafa9b36
parent3a3dbf524b4248832c025d5f988a8216d7d79014 (diff)
zephyr: Replace zephyr.h with kernel.h.
Zephyr v3.2.0 deprecated include/zephyr/zephyr.h in favor of include/zephyr/kernel.h since it only included that header. Signed-off-by: Maureen Helm <maureen.helm@intel.com>
-rw-r--r--ports/zephyr/machine_i2c.c2
-rw-r--r--ports/zephyr/machine_pin.c2
-rw-r--r--ports/zephyr/machine_spi.c2
-rw-r--r--ports/zephyr/machine_uart.c2
-rw-r--r--ports/zephyr/main.c2
-rw-r--r--ports/zephyr/modsocket.c2
-rw-r--r--ports/zephyr/modtime.c2
-rw-r--r--ports/zephyr/modzephyr.c2
-rw-r--r--ports/zephyr/modzsensor.c2
-rw-r--r--ports/zephyr/mpconfigport.h2
-rw-r--r--ports/zephyr/mpconfigport_minimal.h2
-rw-r--r--ports/zephyr/mphalport.h2
-rw-r--r--ports/zephyr/mpthreadport.h2
-rw-r--r--ports/zephyr/src/zephyr_getchar.c2
-rw-r--r--ports/zephyr/src/zephyr_start.c2
-rw-r--r--ports/zephyr/uart_core.c2
16 files changed, 16 insertions, 16 deletions
diff --git a/ports/zephyr/machine_i2c.c b/ports/zephyr/machine_i2c.c
index 27c0a63a0..342ebafe7 100644
--- a/ports/zephyr/machine_i2c.c
+++ b/ports/zephyr/machine_i2c.c
@@ -29,7 +29,7 @@
#include <stdint.h>
#include <string.h>
-#include <zephyr/zephyr.h>
+#include <zephyr/kernel.h>
#include <zephyr/drivers/i2c.h>
#include "py/runtime.h"
diff --git a/ports/zephyr/machine_pin.c b/ports/zephyr/machine_pin.c
index 97a852be8..8a62ea1d2 100644
--- a/ports/zephyr/machine_pin.c
+++ b/ports/zephyr/machine_pin.c
@@ -29,7 +29,7 @@
#include <stdint.h>
#include <string.h>
-#include <zephyr/zephyr.h>
+#include <zephyr/kernel.h>
#include <zephyr/drivers/gpio.h>
#include "py/runtime.h"
diff --git a/ports/zephyr/machine_spi.c b/ports/zephyr/machine_spi.c
index 5c090e15c..2474f2bb8 100644
--- a/ports/zephyr/machine_spi.c
+++ b/ports/zephyr/machine_spi.c
@@ -28,7 +28,7 @@
#include <stdint.h>
#include <string.h>
-#include <zephyr/zephyr.h>
+#include <zephyr/kernel.h>
#include <zephyr/drivers/spi.h>
#include "py/runtime.h"
diff --git a/ports/zephyr/machine_uart.c b/ports/zephyr/machine_uart.c
index bd40137a3..ae5ac4a19 100644
--- a/ports/zephyr/machine_uart.c
+++ b/ports/zephyr/machine_uart.c
@@ -28,7 +28,7 @@
// This file is never compiled standalone, it's included directly from
// extmod/machine_uart.c via MICROPY_PY_MACHINE_UART_INCLUDEFILE.
-#include <zephyr/zephyr.h>
+#include <zephyr/kernel.h>
#include <zephyr/drivers/uart.h>
#include "py/mperrno.h"
diff --git a/ports/zephyr/main.c b/ports/zephyr/main.c
index a2af609ed..7a18f4816 100644
--- a/ports/zephyr/main.c
+++ b/ports/zephyr/main.c
@@ -29,7 +29,7 @@
#include <stdio.h>
#include <string.h>
-#include <zephyr/zephyr.h>
+#include <zephyr/kernel.h>
#ifdef CONFIG_NETWORKING
#include <zephyr/net/net_context.h>
#endif
diff --git a/ports/zephyr/modsocket.c b/ports/zephyr/modsocket.c
index cef9933b2..1ca84edca 100644
--- a/ports/zephyr/modsocket.c
+++ b/ports/zephyr/modsocket.c
@@ -31,7 +31,7 @@
#include "py/stream.h"
#include <stdio.h>
-#include <zephyr/zephyr.h>
+#include <zephyr/kernel.h>
// Zephyr's generated version header
#include <version.h>
#include <zephyr/net/net_context.h>
diff --git a/ports/zephyr/modtime.c b/ports/zephyr/modtime.c
index f1181232a..b042095ed 100644
--- a/ports/zephyr/modtime.c
+++ b/ports/zephyr/modtime.c
@@ -25,7 +25,7 @@
* THE SOFTWARE.
*/
-#include <zephyr/zephyr.h>
+#include <zephyr/kernel.h>
#include "py/obj.h"
diff --git a/ports/zephyr/modzephyr.c b/ports/zephyr/modzephyr.c
index 2e3fc2fec..c059c7e39 100644
--- a/ports/zephyr/modzephyr.c
+++ b/ports/zephyr/modzephyr.c
@@ -29,7 +29,7 @@
#if MICROPY_PY_ZEPHYR
#include <stdio.h>
-#include <zephyr/zephyr.h>
+#include <zephyr/kernel.h>
#include <zephyr/debug/thread_analyzer.h>
#include <zephyr/shell/shell.h>
#include <zephyr/shell/shell_uart.h>
diff --git a/ports/zephyr/modzsensor.c b/ports/zephyr/modzsensor.c
index 58775b980..de7fe7f52 100644
--- a/ports/zephyr/modzsensor.c
+++ b/ports/zephyr/modzsensor.c
@@ -28,7 +28,7 @@
#include "py/runtime.h"
-#include <zephyr/zephyr.h>
+#include <zephyr/kernel.h>
#include <zephyr/drivers/sensor.h>
#if MICROPY_PY_ZSENSOR
diff --git a/ports/zephyr/mpconfigport.h b/ports/zephyr/mpconfigport.h
index 26465cbb5..a2e74e692 100644
--- a/ports/zephyr/mpconfigport.h
+++ b/ports/zephyr/mpconfigport.h
@@ -28,7 +28,7 @@
// Include Zephyr's autoconf.h, which should be made first by Zephyr makefiles
#include "autoconf.h"
// Included here to get basic Zephyr environment (macros, etc.)
-#include <zephyr/zephyr.h>
+#include <zephyr/kernel.h>
#include <zephyr/drivers/spi.h>
// Usually passed from Makefile
diff --git a/ports/zephyr/mpconfigport_minimal.h b/ports/zephyr/mpconfigport_minimal.h
index d81e007e0..9aae20c72 100644
--- a/ports/zephyr/mpconfigport_minimal.h
+++ b/ports/zephyr/mpconfigport_minimal.h
@@ -28,7 +28,7 @@
// Include Zephyr's autoconf.h, which should be made first by Zephyr makefiles
#include "autoconf.h"
// Included here to get basic Zephyr environment (macros, etc.)
-#include <zephyr/zephyr.h>
+#include <zephyr/kernel.h>
// Usually passed from Makefile
#ifndef MICROPY_HEAP_SIZE
diff --git a/ports/zephyr/mphalport.h b/ports/zephyr/mphalport.h
index e1f402cb3..e5414c270 100644
--- a/ports/zephyr/mphalport.h
+++ b/ports/zephyr/mphalport.h
@@ -1,4 +1,4 @@
-#include <zephyr/zephyr.h>
+#include <zephyr/kernel.h>
#include "shared/runtime/interrupt_char.h"
#define MICROPY_BEGIN_ATOMIC_SECTION irq_lock
diff --git a/ports/zephyr/mpthreadport.h b/ports/zephyr/mpthreadport.h
index 37dd72532..b0165bad1 100644
--- a/ports/zephyr/mpthreadport.h
+++ b/ports/zephyr/mpthreadport.h
@@ -29,7 +29,7 @@
#ifndef MICROPY_INCLUDED_ZEPHYR_MPTHREADPORT_H
#define MICROPY_INCLUDED_ZEPHYR_MPTHREADPORT_H
-#include <zephyr/zephyr.h>
+#include <zephyr/kernel.h>
typedef struct _mp_thread_mutex_t {
struct k_sem handle;
diff --git a/ports/zephyr/src/zephyr_getchar.c b/ports/zephyr/src/zephyr_getchar.c
index 3dd871377..94e35e2e8 100644
--- a/ports/zephyr/src/zephyr_getchar.c
+++ b/ports/zephyr/src/zephyr_getchar.c
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-#include <zephyr/zephyr.h>
+#include <zephyr/kernel.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/console/uart_console.h>
#include <zephyr/sys/printk.h>
diff --git a/ports/zephyr/src/zephyr_start.c b/ports/zephyr/src/zephyr_start.c
index 3b00bac12..e15f874b1 100644
--- a/ports/zephyr/src/zephyr_start.c
+++ b/ports/zephyr/src/zephyr_start.c
@@ -23,7 +23,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
-#include <zephyr/zephyr.h>
+#include <zephyr/kernel.h>
#include "zephyr_getchar.h"
int real_main(void);
diff --git a/ports/zephyr/uart_core.c b/ports/zephyr/uart_core.c
index 7e2db3653..ee525c33f 100644
--- a/ports/zephyr/uart_core.c
+++ b/ports/zephyr/uart_core.c
@@ -28,7 +28,7 @@
#include "py/runtime.h"
#include "src/zephyr_getchar.h"
// Zephyr headers
-#include <zephyr/zephyr.h>
+#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <zephyr/console/console.h>
#include <zephyr/console/tty.h>