8000 ports/zephyr: Replace deprecated includes. by mgolu · Pull Request #11759 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

ports/zephyr: Replace deprecated includes. #11759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -29,7 +29,7 @@
#include <stdint.h>
#include <string.h>

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

#include "py/runtime.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 @@

A92E
#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/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"

void mp_hal_init(void);
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/console/console.h>
#include "zephyr_getchar.h"

Expand Down
0