From 2e8b50ac63cfb44629e35de8debed9a8bcad5fc1 Mon Sep 17 00:00:00 2001 From: Shengwen Cheng Date: Thu, 8 Feb 2024 00:43:51 +0800 Subject: [PATCH] Relocate serial/ into periph/ --- drivers/drivers.mk | 10 +++++----- drivers/{ => periph}/serial/console.c | 0 drivers/{ => periph}/serial/debug_link.c | 0 drivers/{ => periph}/serial/mavlink.c | 0 drivers/{ => periph}/serial/serial.h | 0 drivers/{ => periph}/serial/uart.c | 0 drivers/{ => periph}/serial/uart.h | 0 7 files changed, 5 insertions(+), 5 deletions(-) rename drivers/{ => periph}/serial/console.c (100%) rename drivers/{ => periph}/serial/debug_link.c (100%) rename drivers/{ => periph}/serial/mavlink.c (100%) rename drivers/{ => periph}/serial/serial.h (100%) rename drivers/{ => periph}/serial/uart.c (100%) rename drivers/{ => periph}/serial/uart.h (100%) diff --git a/drivers/drivers.mk b/drivers/drivers.mk index 0a9af7d5..a71f568c 100644 --- a/drivers/drivers.mk +++ b/drivers/drivers.mk @@ -1,11 +1,11 @@ PROJ_ROOT := $(dir $(lastword $(MAKEFILE_LIST)))/../ CFLAGS += -I $(PROJ_ROOT)/drivers/device -CFLAGS += -I $(PROJ_ROOT)/drivers/serial CFLAGS += -I $(PROJ_ROOT)/drivers/periph +CFLAGS += -I $(PROJ_ROOT)/drivers/periph/serial -SRC += $(PROJ_ROOT)/drivers/serial/uart.c \ - $(PROJ_ROOT)/drivers/serial/console.c \ - $(PROJ_ROOT)/drivers/serial/mavlink.c \ - $(PROJ_ROOT)/drivers/serial/debug_link.c \ +SRC += $(PROJ_ROOT)/drivers/periph/serial/uart.c \ + $(PROJ_ROOT)/drivers/periph/serial/console.c \ + $(PROJ_ROOT)/drivers/periph/serial/mavlink.c \ + $(PROJ_ROOT)/drivers/periph/serial/debug_link.c \ $(PROJ_ROOT)/drivers/periph/pwm.c diff --git a/drivers/serial/console.c b/drivers/periph/serial/console.c similarity index 100% rename from drivers/serial/console.c rename to drivers/periph/serial/console.c diff --git a/drivers/serial/debug_link.c b/drivers/periph/serial/debug_link.c similarity index 100% rename from drivers/serial/debug_link.c rename to drivers/periph/serial/debug_link.c diff --git a/drivers/serial/mavlink.c b/drivers/periph/serial/mavlink.c similarity index 100% rename from drivers/serial/mavlink.c rename to drivers/periph/serial/mavlink.c diff --git a/drivers/serial/serial.h b/drivers/periph/serial/serial.h similarity index 100% rename from drivers/serial/serial.h rename to drivers/periph/serial/serial.h diff --git a/drivers/serial/uart.c b/drivers/periph/serial/uart.c similarity index 100% rename from drivers/serial/uart.c rename to drivers/periph/serial/uart.c diff --git a/drivers/serial/uart.h b/drivers/periph/serial/uart.h similarity index 100% rename from drivers/serial/uart.h rename to drivers/periph/serial/uart.h