https://github.com/RT-Thread/rt-thread/pull/9420
@@ -79,8 +79,8 @@ static const struct _cy_sdio_pin_and_name_config _sdcard_config =
};
#include <dfs_fs.h>
-#include <drivers/mmcsd_core.h>
-#include <drivers/gpt.h>
+#include <drivers/dev_mmcsd_core.h>
+#include <drivers/dev_gpt.h>
struct rthw_sdio
{
struct rt_device parent;
@@ -12,7 +12,7 @@
#define __DRV_SPI__
#include <rtthread.h>
-#include <drivers/spi.h>
+#include "drivers/dev_spi.h"
#include "drv_gpio.h"
@@ -9,8 +9,8 @@
*/
-#include "spi_flash.h"
-#include "spi_flash_sfud.h"
+#include "dev_spi_flash.h"
+#include "dev_spi_flash_sfud.h"
#include "drv_spi.h"
#if defined(BSP_USING_SPI_FLASH)
@@ -9,7 +9,7 @@
#include "board.h"
-#include <drivers/watchdog.h>
+#include "drivers/dev_watchdog.h"
#ifdef RT_USING_WDT
@@ -10,8 +10,8 @@
#include <board.h>
@@ -10,7 +10,7 @@
#include <rtdevice.h>
@@ -28,8 +28,8 @@
#endif
#if defined(TINA_USING_SPI_FLASH) && defined(RT_USING_SFUD)
-#include <spi_flash_sfud.h>
+#include <dev_spi_flash_sfud.h>
rt_spi_flash_device_t spi_device;
int rt_hw_spi_flash_with_sfud_init(void)
@@ -15,8 +15,8 @@
#include "rtdevice.h"
#include <rthw.h>
#include <string.h>
-#include <drivers/sdio.h>
+#include <drivers/dev_sdio.h>
#include "drv_common.h"
@@ -13,7 +13,7 @@
struct apm32_spi_config
@@ -14,8 +14,8 @@
#define SDCARD_INSTANCE_TYPE sdio_type
#include "drv_dma.h"
@@ -8,7 +8,7 @@
* 2022-05-16 shelton first version
@@ -22,7 +22,7 @@
#ifdef RT_USING_SDIO
#include "at91_mci.h"
#include <at91sam926x.h>
#include <at91sam9g45.h>
#include "rtconfig.h"
#include "rtdef.h"
#include "rthw.h"
-#include "serial.h"
+#include "drivers/dev_serial.h"
#include <signal.h>
#include <sys/platform.h>
#include "application.h"
#include "finsh.h"
extern "asm" int rtt_heap_start;
@@ -13,8 +13,8 @@
-#include "drivers/mmcsd_core.h"
-#include "drivers/sdio.h"
+#include "drivers/dev_mmcsd_core.h"
+#include "drivers/dev_sdio.h"
#define SDIO_BUFF_SIZE 1024
#define SDIO_ALIGN_LEN 32
-#include <wlan_dev.h>
+#include "dev_wlan.h"
#define DBG_TAG "drv.wifi"
#define DBG_LVL DBG_LOG
@@ -303,7 +303,7 @@ static rt_err_t drv_wlan_softap(struct rt_wlan_device *wlan, struct rt_ap_info *
}
if (ret < 0)
- return RT_ERROR;
+ return -RT_ERROR;
return RT_EOK;
@@ -20,8 +20,8 @@
#include <rtdbg.h>
#include "drv_sdh.h"
#if defined(BL808)
@@ -21,8 +21,8 @@
#define DBG_LEVEL DBG_INFO
#include "drv_sdhci.h"
int main(void)
@@ -11,7 +11,7 @@
#include <dm36x.h>
#include "mmcsd.h"
#include "edma.h"
@@ -14,9 +14,9 @@
#include "drv_spiflash.h"
int rt_hw_spi_flash_init(void)
@@ -17,7 +17,7 @@
#include <MK64F12.h>
-#include <drivers/serial.h>
+#include <drivers/dev_serial.h>
void rt_hw_uart_init(void);
@@ -16,8 +16,8 @@
#ifdef BSP_USE_QSPI
#define _QSPI_DEVICE_NAME "qspiflash"
static int
@@ -14,7 +14,7 @@
#include "ft_debug.h"
#include "ft_types.h"
#include "ft_generic_timer.h"
#include "interrupt.h"
#include "ft_cache.h"
#ifdef BSP_USE_SPI
static int rt_hw_spi_flash_init(void)
@@ -10,10 +10,10 @@
#ifdef RT_USING_SFUD
@@ -19,9 +19,9 @@
#ifdef BSP_USING_SPI_FLASH
- #include "spi_flash_sfud.h"
+ #include "dev_spi_flash_sfud.h"
#define SPI_BUS_NAME "spi1"
#include <sfud.h>
- #include <spi_flash_sfud.h>
+ #include <dev_spi_flash_sfud.h>
#ifndef FAL_USING_NOR_FLASH_DEV_NAME
@@ -18,9 +18,9 @@
#define SPI_BUS_NAME "spi3"
#include <fal.h>
#if defined(HC32F4A0) || defined(HC32F448)
#include <hk32f0xx.h>
struct hk32_spi_config
#if defined(RT_USING_SPI_MSD) && defined(RT_USING_DFS_ELMFAT)
-#include <spi_msd.h>
+#include <dev_spi_msd.h>
int mnt_init(void)
@@ -17,6 +17,7 @@
#include "drv_lcd.h"
#include <gpiohs.h>
+#include <drivers/dev_spi.h>
#include <spi.h>
#include <drv_io_config.h>
@@ -10,11 +10,12 @@
+#include <spi.h>
#ifdef RT_USING_SPI
-#include <spi.h>
#include "dmalock.h"
#include <sysctl.h>
@@ -10,11 +10,11 @@
#include "ls1c_public.h"
-#include "spi_msd.h"
+#include "dev_spi_msd.h"
#include "dfs_fs.h"
#include "../libraries/ls1c_pin.h"
#include "drv_wdt.h"
#include "ls1c_wdog.h"
#include <stdbool.h>
#include "ls1c.h"
#include "ls1c_gpio.h"
#include "ls1c_spi.h"
@@ -18,7 +18,7 @@
#include <ctype.h>
#include <stdint.h>
@@ -30,7 +30,7 @@
#include "xintc_l.h"
#ifdef RT_USING_UART1
#define TIMER_CNTR_0 0
@@ -143,8 +143,8 @@ static void rt_hw_console_init()
rt_uint32_t status;
/*
- * Initialize the UartLite driver so that it is ready to use.
- */
+ * Initialize the UartLite driver so that it is ready to use.
+ */
status = XUartLite_Initialize(&uart_lite, RS232_DEVICE_ID);
if (status != XST_SUCCESS)
#include <s3c24x0.h>
#define S3C_PCLK 50000000
#include <sep4020.h>
-#include <serial.h>
#ifdef RT_USING_FINSH
#include <finsh.h>
void rt_hw_serial_putc(const char c);
#ifdef BSP_USING_WDT
#if defined(BSP_USING_SDH)
#include "NuMicro.h"
#if defined(BOARD_USING_STORAGE_SPIFLASH)
#if defined(RT_USING_SFUD)
- #include "spi_flash.h"
+ #include "dev_spi_flash.h"
#include "drv_qspi.h"
#include <ioremap.h>
@@ -12,8 +12,8 @@
#include <fsl_usdhc.h>
@@ -6,7 +6,7 @@
#include "drv_sdcard.h"
#define RT_SDCARD_CS_PIN (3)
#include "rtthread.h"
#define RT_SPI_FLASH_CS_PIN (2)
#define DRV_SOFT_SPI_H_
-#include <spi-bit-ops.h>
+#include <dev_spi_bit_ops.h>
/* lpc soft spi config */
struct lpc_soft_spi_config
#include "drv_soft_spi.h"
#include "drv_pin.h"
#if defined(BSP_USING_SPI7) && defined(RT_USING_SFUD) && defined(RT_USING_DFS) && defined(RT_USING_DFS_ELMFAT)
#include <dfs_elm.h>
#include "dfs.h"
#include "dfs_file.h"
@@ -21,7 +21,7 @@
#ifdef RT_USING_SMART
#include "ioremap.h"
#include <stdio.h>
-//#include <drivers/spi.h>
+//#include "drivers/dev_spi.h"
#define SPI0_BASE_ADDR (PER_BASE + BCM283X_SPI0_BASE)
#include "raspi4.h"
-#include <drivers/touch.h>
+#include "drivers/dev_touch.h"
#include <mmu.h>
#ifdef BSP_USING_SOFT_SPI
/* pico soft spi config */
struct pico_soft_spi_config
/* ra soft spi config */
struct ra_soft_spi_config
@@ -5,7 +5,7 @@
#include "drv_sci.h"
#define DBG_TAG "app.filesystem"
@@ -102,7 +102,7 @@ static void sd_mount(void)
#else
int sd_mount(void)
@@ -137,7 +137,7 @@ static void sd_mount(void)
@@ -67,7 +67,7 @@
#ifndef SAMD20
# include "sysclk.h"
#if (XMEGA || MEGA_RF) && defined(__GNUC__)
extern int _write (char c, int *f);
@@ -46,7 +46,7 @@
#ifndef GFX_MONO_SCREEN_DUMP_H_INCLUDED
#define GFX_MONO_SCREEN_DUMP_H_INCLUDED
#include <gfx_mono.h>
#ifdef __cplusplus