zephyr: Update include paths for Zephyr v2.0.

Zephyr restructured its includes in v2.0 and removed compatibility shims
after two releases in commit 1342dadc365ee22199e51779185899ddf7478686.
Updates include paths in MicroPython accordingly to fix build errors in
the zephyr port.

These changes are compatible with Zephyr v2.0 and later.
This commit is contained in:
Maureen Helm 2019-12-30 07:22:59 -06:00 committed by Damien George
parent c4ea4c1810
commit c25e12d0dd
8 changed files with 10 additions and 10 deletions

View File

@ -30,7 +30,7 @@
#include <string.h>
#include <zephyr.h>
#include <i2c.h>
#include <drivers/i2c.h>
#include "py/runtime.h"
#include "py/gc.h"

View File

@ -30,7 +30,7 @@
#include <string.h>
#include <zephyr.h>
#include <gpio.h>
#include <drivers/gpio.h>
#include "py/runtime.h"
#include "py/gc.h"

View File

@ -28,7 +28,7 @@
#include <stdint.h>
#include <stdio.h>
#include <misc/reboot.h>
#include <power/reboot.h>
#include "py/obj.h"
#include "py/runtime.h"

View File

@ -29,7 +29,7 @@
#include <stdio.h>
#include <zephyr.h>
#include <misc/stack.h>
#include <debug/stack.h>
#include "py/runtime.h"

View File

@ -29,7 +29,7 @@
#include "py/runtime.h"
#include <zephyr.h>
#include <sensor.h>
#include <drivers/sensor.h>
#if MICROPY_PY_ZSENSOR

View File

@ -15,9 +15,9 @@
*/
#include <zephyr.h>
#include <uart.h>
#include <drivers/uart.h>
#include <drivers/console/uart_console.h>
#include <misc/printk.h>
#include <sys/printk.h>
#include "zephyr_getchar.h"
extern int mp_interrupt_char;

View File

@ -24,7 +24,7 @@
* THE SOFTWARE.
*/
#include <zephyr.h>
#include <console.h>
#include <console/console.h>
#include "zephyr_getchar.h"
int real_main(void);

View File

@ -27,8 +27,8 @@
#include "py/mpconfig.h"
#include "src/zephyr_getchar.h"
// Zephyr headers
#include <uart.h>
#include <console.h>
#include <drivers/uart.h>
#include <console/console.h>
/*
* Core UART functions to implement for a port