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>
This commit is contained in:
Maureen Helm 2022-09-16 12:31:06 -05:00 committed by Damien George
parent 3a3dbf524b
commit 4e59a51902
16 changed files with 16 additions and 16 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -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>

View File

@ -25,7 +25,7 @@
* THE SOFTWARE.
*/
#include <zephyr/zephyr.h>
#include <zephyr/kernel.h>
#include "py/obj.h"

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;

View File

@ -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>

View File

@ -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);

View File

@ -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>