Skip to content

Commit

Permalink
zephyr: Replace zephyr.h with kernel.h.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
MaureenHelm authored and dpgeorge committed Oct 1, 2024
1 parent 3a3dbf5 commit 4e59a51
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ports/zephyr/machine_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion ports/zephyr/machine_pin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion ports/zephyr/machine_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion ports/zephyr/machine_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion ports/zephyr/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ports/zephyr/modsocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion ports/zephyr/modtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* THE SOFTWARE.
*/

#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>

#include "py/obj.h"

Expand Down
2 changes: 1 addition & 1 deletion ports/zephyr/modzephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion ports/zephyr/modzsensor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ports/zephyr/mpconfigport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ports/zephyr/mpconfigport_minimal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ports/zephyr/mphalport.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion ports/zephyr/mpthreadport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion ports/zephyr/src/zephyr_getchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion ports/zephyr/src/zephyr_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion ports/zephyr/uart_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 4e59a51

Please sign in to comment.