浏览代码

[device] add dev_ prefix for file names

CXSforHPU 8 月之前
父节点
当前提交
416ec66380
共有 78 个文件被更改,包括 127 次插入153 次删除
  1. 1 1
      bsp/Infineon/libraries/HAL_Drivers/drv_pwm.c
  2. 1 1
      bsp/acm32/acm32f0x0-nucleo/applications/main.c
  3. 1 1
      bsp/acm32/acm32f0x0-nucleo/drivers/drv_soft_i2c.h
  4. 1 1
      bsp/acm32/acm32f4xx-nucleo/applications/main.c
  5. 1 1
      bsp/apm32/libraries/Drivers/drv_pwm.c
  6. 1 1
      bsp/at32/libraries/rt_drivers/drv_hard_i2c.h
  7. 1 1
      bsp/at32/libraries/rt_drivers/drv_pwm.c
  8. 1 1
      bsp/cvitek/cv18xx_risc-v/applications/main.c
  9. 1 1
      bsp/dm365/drivers/i2c-davinci.c
  10. 1 1
      bsp/hc32/libraries/hc32_drivers/drv_pwm.c
  11. 1 1
      bsp/hpmicro/hpm6750evk/board/hpm_sgtl5000.h
  12. 1 1
      bsp/hpmicro/hpm6750evk2/board/hpm_wm8960.h
  13. 1 1
      bsp/hpmicro/hpm6800evk/board/hpm_wm8960.h
  14. 1 1
      bsp/hpmicro/libraries/drivers/drv_dao.c
  15. 1 1
      bsp/hpmicro/libraries/drivers/drv_i2s.c
  16. 1 1
      bsp/hpmicro/libraries/drivers/drv_pdm.c
  17. 1 1
      bsp/k210/drivers/drv_i2c.c
  18. 1 1
      bsp/loongson/ls1cdev/drivers/drv_gpio.c
  19. 2 2
      bsp/loongson/ls1cdev/drivers/drv_i2c.c
  20. 2 2
      bsp/loongson/ls2kdev/drivers/drv_gpio.c
  21. 1 1
      bsp/loongson/ls2kdev/drivers/drv_spi.c
  22. 1 1
      bsp/loongson/ls2kdev/drivers/interrupt.c
  23. 1 1
      bsp/maxim/libraries/HAL_Drivers/drv_i2c.c
  24. 1 1
      bsp/maxim/libraries/HAL_Drivers/drv_rtc.c
  25. 1 1
      bsp/n32g452xx/Libraries/rt_drivers/drv_pwm.h
  26. 1 1
      bsp/nxp/imx/imx6ull-smart/drivers/drv_pwm.c
  27. 1 1
      bsp/nxp/imx/imxrt/libraries/drivers/drv_sai.c
  28. 2 2
      bsp/nxp/lpc/lpc55sxx/Libraries/drivers/drv_sound_wm8904.c
  29. 1 1
      bsp/phytium/libraries/drivers/drv_i2c.c
  30. 1 1
      bsp/renesas/ra6m3-hmi-board/board/ports/can_test.c
  31. 1 1
      bsp/stm32/libraries/HAL_Drivers/drivers/drv_pwm.c
  32. 1 1
      bsp/stm32/stm32f429-st-disco/board/ports/touch/drv_touch.c
  33. 1 1
      bsp/w60x/drivers/drv_rtc.h
  34. 1 1
      bsp/wch/risc-v/Libraries/ch32_drivers/drv_pwm.h
  35. 1 1
      bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_gpio.c
  36. 2 2
      bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_pwm.c
  37. 1 1
      bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_spi.c
  38. 1 1
      bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_uart.c
  39. 1 1
      bsp/wch/risc-v/ch32v103r-evt/board/board.h
  40. 1 1
      bsp/wch/risc-v/ch32v208w-r0/applications/main.c
  41. 1 1
      bsp/wch/risc-v/ch569w-evt/applications/main.c
  42. 2 2
      bsp/wch/risc-v/ch569w-evt/applications/test.c
  43. 1 1
      bsp/wch/risc-v/ch569w-evt/board/board.c
  44. 0 0
      components/drivers/audio/dev_audio.c
  45. 1 1
      components/drivers/audio/dev_audio_pipe.c
  46. 3 3
      components/drivers/audio/dev_audio_pipe.h
  47. 0 0
      components/drivers/can/dev_can.c
  48. 5 5
      components/drivers/i2c/SConscript
  49. 0 0
      components/drivers/i2c/dev_i2c_bit_ops.c
  50. 1 1
      components/drivers/i2c/dev_i2c_bus.c
  51. 0 0
      components/drivers/i2c/dev_i2c_core.c
  52. 0 0
      components/drivers/i2c/dev_i2c_dev.c
  53. 1 1
      components/drivers/i2c/dev_i2c_dm.c
  54. 0 0
      components/drivers/i2c/dev_soft_i2c.c
  55. 3 3
      components/drivers/include/drivers/dev_alarm.h
  56. 4 4
      components/drivers/include/drivers/dev_audio.h
  57. 3 3
      components/drivers/include/drivers/dev_can.h
  58. 21 2
      components/drivers/include/drivers/dev_i2c.h
  59. 2 2
      components/drivers/include/drivers/dev_i2c_bit_ops.h
  60. 3 3
      components/drivers/include/drivers/dev_i2c_dm.h
  61. 2 2
      components/drivers/include/drivers/dev_pin.h
  62. 3 3
      components/drivers/include/drivers/dev_pwm.h
  63. 3 3
      components/drivers/include/drivers/dev_rtc.h
  64. 0 44
      components/drivers/include/drivers/i2c_dev.h
  65. 1 1
      components/drivers/include/drivers/sensor.h
  66. 1 1
      components/drivers/include/drivers/sensor_v2.h
  67. 1 1
      components/drivers/include/drivers/spi.h
  68. 1 1
      components/drivers/include/drivers/touch.h
  69. 9 10
      components/drivers/include/rtdevice.h
  70. 3 3
      components/drivers/pin/SConscript
  71. 1 1
      components/drivers/pin/dev_pin.c
  72. 1 1
      components/drivers/pin/dev_pin_dm.c
  73. 1 1
      components/drivers/pin/dev_pin_dm.h
  74. 1 1
      components/drivers/pin/dev_pin_ofw.c
  75. 3 3
      components/drivers/rtc/SConscript
  76. 0 0
      components/drivers/rtc/dev_alarm.c
  77. 1 1
      components/drivers/rtc/dev_rtc.c
  78. 0 0
      components/drivers/rtc/dev_soft_rtc.c

+ 1 - 1
bsp/Infineon/libraries/HAL_Drivers/drv_pwm.c

@@ -11,7 +11,7 @@
 
 
 #ifdef RT_USING_PWM
 #ifdef RT_USING_PWM
 
 
-#include <drivers/rt_drv_pwm.h>
+#include <drivers/dev_pwm.h>
 #include "drv_gpio.h"
 #include "drv_gpio.h"
 
 
 //#define DRV_DEBUG
 //#define DRV_DEBUG

+ 1 - 1
bsp/acm32/acm32f0x0-nucleo/applications/main.c

@@ -9,7 +9,7 @@
  * 2021-10-17     AisinoChip   remove unused header file
  * 2021-10-17     AisinoChip   remove unused header file
  */
  */
 #include "board.h"
 #include "board.h"
-#include <drivers/pin.h>
+#include <drivers/dev_pin.h>
 
 
 #define LED_PIN_NUM    1     /* PA1 */
 #define LED_PIN_NUM    1     /* PA1 */
 
 

+ 1 - 1
bsp/acm32/acm32f0x0-nucleo/drivers/drv_soft_i2c.h

@@ -15,7 +15,7 @@
 #include <board.h>
 #include <board.h>
 #include <rtdbg.h>
 #include <rtdbg.h>
 #include <rtdevice.h>
 #include <rtdevice.h>
-#include <drivers/pin.h>
+#include <drivers/dev_pin.h>
 
 
 /* acm32 config class */
 /* acm32 config class */
 struct acm32_soft_i2c_config
 struct acm32_soft_i2c_config

+ 1 - 1
bsp/acm32/acm32f4xx-nucleo/applications/main.c

@@ -11,7 +11,7 @@
 #include <rthw.h>
 #include <rthw.h>
 #include <rtthread.h>
 #include <rtthread.h>
 #include "board.h"
 #include "board.h"
-#include <drivers/pin.h>
+#include <drivers/dev_pin.h>
 
 
 #define LED_PIN_NUM    83     /* PF3 */
 #define LED_PIN_NUM    83     /* PF3 */
 
 

+ 1 - 1
bsp/apm32/libraries/Drivers/drv_pwm.c

@@ -14,7 +14,7 @@
 #include <board.h>
 #include <board.h>
 
 
 #ifdef RT_USING_PWM
 #ifdef RT_USING_PWM
-#include <drivers/rt_drv_pwm.h>
+#include <drivers/dev_pwm.h>
 
 
 #define DBG_TAG               "drv.pwm"
 #define DBG_TAG               "drv.pwm"
 #define DBG_LVL               DBG_INFO
 #define DBG_LVL               DBG_INFO

+ 1 - 1
bsp/at32/libraries/rt_drivers/drv_hard_i2c.h

@@ -12,7 +12,7 @@
 #define __DRV_HARD_I2C_H__
 #define __DRV_HARD_I2C_H__
 
 
 #include <rtthread.h>
 #include <rtthread.h>
-#include <drivers/i2c.h>
+#include <drivers/dev_i2c.h>
 #include "drv_common.h"
 #include "drv_common.h"
 #include "drv_dma.h"
 #include "drv_dma.h"
 
 

+ 1 - 1
bsp/at32/libraries/rt_drivers/drv_pwm.c

@@ -12,7 +12,7 @@
 
 
 #ifdef RT_USING_PWM
 #ifdef RT_USING_PWM
 #include "drv_pwm.h"
 #include "drv_pwm.h"
-#include <drivers/rt_drv_pwm.h>
+#include <drivers/dev_pwm.h>
 
 
 //#define DRV_DEBUG
 //#define DRV_DEBUG
 #define LOG_TAG                         "drv.pwm"
 #define LOG_TAG                         "drv.pwm"

+ 1 - 1
bsp/cvitek/cv18xx_risc-v/applications/main.c

@@ -10,7 +10,7 @@
 
 
 #include <rtthread.h>
 #include <rtthread.h>
 #include <stdio.h>
 #include <stdio.h>
-#include <drivers/pin.h>
+#include <drivers/dev_pin.h>
 
 
 #if defined(BOARD_TYPE_MILKV_DUO256M) || defined(BOARD_TYPE_MILKV_DUO256M_SPINOR)
 #if defined(BOARD_TYPE_MILKV_DUO256M) || defined(BOARD_TYPE_MILKV_DUO256M_SPINOR)
 #define LED_PIN     "E02" /* Onboard LED pins */
 #define LED_PIN     "E02" /* Onboard LED pins */

+ 1 - 1
bsp/dm365/drivers/i2c-davinci.c

@@ -9,7 +9,7 @@
  */
  */
 
 
 #include <rtthread.h>
 #include <rtthread.h>
-#include <drivers/i2c.h>
+#include <drivers/dev_i2c.h>
 #include <dm36x.h>
 #include <dm36x.h>
 
 
 /* ----- global defines ----------------------------------------------- */
 /* ----- global defines ----------------------------------------------- */

+ 1 - 1
bsp/hc32/libraries/hc32_drivers/drv_pwm.c

@@ -12,7 +12,7 @@
 #include <board.h>
 #include <board.h>
 
 
 #include "drv_config.h"
 #include "drv_config.h"
-#include <drivers/rt_drv_pwm.h>
+#include <drivers/dev_pwm.h>
 #include <pwm_tmr_config.h>
 #include <pwm_tmr_config.h>
 
 
 #if defined(BSP_USING_PWM)
 #if defined(BSP_USING_PWM)

+ 1 - 1
bsp/hpmicro/hpm6750evk/board/hpm_sgtl5000.h

@@ -13,7 +13,7 @@
 #include <rtthread.h>
 #include <rtthread.h>
 #include <rtdevice.h>
 #include <rtdevice.h>
 #include "rtt_board.h"
 #include "rtt_board.h"
-#include "drivers/i2c.h"
+#include "drivers/dev_i2c.h"
 
 
 /*!
 /*!
  * @addtogroup sgtl5000
  * @addtogroup sgtl5000

+ 1 - 1
bsp/hpmicro/hpm6750evk2/board/hpm_wm8960.h

@@ -15,7 +15,7 @@
 #include <rtthread.h>
 #include <rtthread.h>
 #include <rtdevice.h>
 #include <rtdevice.h>
 #include "rtt_board.h"
 #include "rtt_board.h"
-#include "drivers/i2c.h"
+#include "drivers/dev_i2c.h"
 #include "hpm_wm8960_regs.h"
 #include "hpm_wm8960_regs.h"
 
 
 #define WM8960_I2C_ADDR 0x1A
 #define WM8960_I2C_ADDR 0x1A

+ 1 - 1
bsp/hpmicro/hpm6800evk/board/hpm_wm8960.h

@@ -15,7 +15,7 @@
 #include <rtthread.h>
 #include <rtthread.h>
 #include <rtdevice.h>
 #include <rtdevice.h>
 #include "rtt_board.h"
 #include "rtt_board.h"
-#include "drivers/i2c.h"
+#include "drivers/dev_i2c.h"
 #include "hpm_wm8960_regs.h"
 #include "hpm_wm8960_regs.h"
 
 
 #define WM8960_I2C_ADDR 0x1A
 #define WM8960_I2C_ADDR 0x1A

+ 1 - 1
bsp/hpmicro/libraries/drivers/drv_dao.c

@@ -13,7 +13,7 @@
 #include <rtdbg.h>
 #include <rtdbg.h>
 
 
 #ifdef BSP_USING_DAO
 #ifdef BSP_USING_DAO
-#include "drivers/audio.h"
+#include "drivers/dev_audio.h"
 #include "hpm_i2s_drv.h"
 #include "hpm_i2s_drv.h"
 #include "hpm_dao_drv.h"
 #include "hpm_dao_drv.h"
 #include "board.h"
 #include "board.h"

+ 1 - 1
bsp/hpmicro/libraries/drivers/drv_i2s.c

@@ -26,7 +26,7 @@
 #include "hpm_dma_mgr.h"
 #include "hpm_dma_mgr.h"
 
 
 #include "drv_i2s.h"
 #include "drv_i2s.h"
-#include "drivers/audio.h"
+#include "drivers/dev_audio.h"
 
 
 static rt_ssize_t hpm_i2s_transmit(struct rt_audio_device* audio, const void* writeBuf, void* readBuf, rt_size_t size);
 static rt_ssize_t hpm_i2s_transmit(struct rt_audio_device* audio, const void* writeBuf, void* readBuf, rt_size_t size);
 
 

+ 1 - 1
bsp/hpmicro/libraries/drivers/drv_pdm.c

@@ -14,7 +14,7 @@
 
 
 #ifdef BSP_USING_PDM
 #ifdef BSP_USING_PDM
 #include "board.h"
 #include "board.h"
-#include "drivers/audio.h"
+#include "drivers/dev_audio.h"
 #include "hpm_i2s_drv.h"
 #include "hpm_i2s_drv.h"
 #include "hpm_pdm_drv.h"
 #include "hpm_pdm_drv.h"
 #include "drv_pdm.h"
 #include "drv_pdm.h"

+ 1 - 1
bsp/k210/drivers/drv_i2c.c

@@ -13,7 +13,7 @@
 #include <rtdevice.h>
 #include <rtdevice.h>
 
 
 #include "board.h"
 #include "board.h"
-#include "i2c.h"
+#include "drivers/dev_i2c.h"
 #include "gpiohs.h"
 #include "gpiohs.h"
 #include "utils.h"
 #include "utils.h"
 #include "sleep.h"
 #include "sleep.h"

+ 1 - 1
bsp/loongson/ls1cdev/drivers/drv_gpio.c

@@ -10,7 +10,7 @@
  */
  */
 
 
 #include <rtthread.h>
 #include <rtthread.h>
-#include <drivers/pin.h>
+#include <drivers/dev_pin.h>
 #include "ls1c_gpio.h"
 #include "ls1c_gpio.h"
 #include "ls1c.h"
 #include "ls1c.h"
 #include <rthw.h>
 #include <rthw.h>

+ 2 - 2
bsp/loongson/ls1cdev/drivers/drv_i2c.c

@@ -9,8 +9,8 @@
  */
  */
 
 
 #include <rtthread.h>
 #include <rtthread.h>
-#include <drivers/i2c.h>
-#include <drivers/i2c-bit-ops.h>
+#include <drivers/dev_i2c.h>
+#include <drivers/dev_i2c_bit_ops.h>
 #include "drv_i2c.h"
 #include "drv_i2c.h"
 #include "../libraries/ls1c_gpio.h"
 #include "../libraries/ls1c_gpio.h"
 #include "../libraries/ls1c_delay.h"
 #include "../libraries/ls1c_delay.h"

+ 2 - 2
bsp/loongson/ls2kdev/drivers/drv_gpio.c

@@ -6,10 +6,10 @@
  * Date           Author       Notes
  * Date           Author       Notes
  * 2015-01-20     Bernard      the first version
  * 2015-01-20     Bernard      the first version
  * 2017-10-20      ZYH         add mode open drain and input pull down
  * 2017-10-20      ZYH         add mode open drain and input pull down
- * 2020-06-01     Du Huanpeng  GPIO driver based on <components/drivers/include/drivers/pin.h>
+ * 2020-06-01     Du Huanpeng  GPIO driver based on <components/drivers/include/drivers/dev_pin.h>
  */
  */
 #include <rtthread.h>
 #include <rtthread.h>
-#include <drivers/pin.h>
+#include <drivers/dev_pin.h>
 #include <ls2k1000.h>
 #include <ls2k1000.h>
 #include "drv_gpio.h"
 #include "drv_gpio.h"
 
 

+ 1 - 1
bsp/loongson/ls2kdev/drivers/drv_spi.c

@@ -23,7 +23,7 @@
 
 
 #ifdef RT_USING_SPI
 #ifdef RT_USING_SPI
 #ifdef RT_USING_SPI_GPIOCS
 #ifdef RT_USING_SPI_GPIOCS
-#include <drivers/pin.h>
+#include <drivers/dev_pin.h>
 #endif
 #endif
 
 
 static void spi_init(uint8_t spre_spr, uint8_t copl, uint8_t cpha)
 static void spi_init(uint8_t spre_spr, uint8_t copl, uint8_t cpha)

+ 1 - 1
bsp/loongson/ls2kdev/drivers/interrupt.c

@@ -17,7 +17,7 @@
 #include <rtthread.h>
 #include <rtthread.h>
 #include <rthw.h>
 #include <rthw.h>
 #include <exception.h>
 #include <exception.h>
-#include <drivers/pin.h>
+#include <drivers/dev_pin.h>
 #include "ls2k1000.h"
 #include "ls2k1000.h"
 #include "interrupt.h"
 #include "interrupt.h"
 
 

+ 1 - 1
bsp/maxim/libraries/HAL_Drivers/drv_i2c.c

@@ -10,7 +10,7 @@
  */
  */
 
 
 #include "drv_i2c.h"
 #include "drv_i2c.h"
-#include "i2c.h"
+#include "drivers/dev_i2c.h"
 #include <rtdevice.h>
 #include <rtdevice.h>
 #include <rtthread.h>
 #include <rtthread.h>
 #include "board.h"
 #include "board.h"

+ 1 - 1
bsp/maxim/libraries/HAL_Drivers/drv_rtc.c

@@ -8,7 +8,7 @@
  * 2021-03-15   picospuch     Porting for maxiam32660
  * 2021-03-15   picospuch     Porting for maxiam32660
  */
  */
 
 
-#include "rtc.h"
+#include "drivers/dev_rtc.h"
 #include "board.h"
 #include "board.h"
 #include <sys/time.h>
 #include <sys/time.h>
 
 

+ 1 - 1
bsp/n32g452xx/Libraries/rt_drivers/drv_pwm.h

@@ -12,7 +12,7 @@
 #define __PWM_CONFIG_H__
 #define __PWM_CONFIG_H__
 
 
 #include <rtthread.h>
 #include <rtthread.h>
-#include <drivers/rt_drv_pwm.h>
+#include <drivers/dev_pwm.h>
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C" {
 extern "C" {

+ 1 - 1
bsp/nxp/imx/imx6ull-smart/drivers/drv_pwm.c

@@ -22,7 +22,7 @@
 #include "fsl_pwm.h"
 #include "fsl_pwm.h"
 #include "drv_pwm.h"
 #include "drv_pwm.h"
 #include <drv_common.h>
 #include <drv_common.h>
-#include <drivers/rt_drv_pwm.h>
+#include <drivers/dev_pwm.h>
 
 
 #define PWM_SRC_CLK_FREQ              CLOCK_GetFreq(kCLOCK_IpgClk)
 #define PWM_SRC_CLK_FREQ              CLOCK_GetFreq(kCLOCK_IpgClk)
 /* PWMPR register value of 0xffff has the same effect as 0xfffe */
 /* PWMPR register value of 0xffff has the same effect as 0xfffe */

+ 1 - 1
bsp/nxp/imx/imxrt/libraries/drivers/drv_sai.c

@@ -17,7 +17,7 @@
 #include <drv_log.h>
 #include <drv_log.h>
 
 
 #include <rtdevice.h>
 #include <rtdevice.h>
-#include "drivers/audio.h"
+#include "drivers/dev_audio.h"
 #include "bsp_wm8960.h"
 #include "bsp_wm8960.h"
 #include "drv_i2c.h"
 #include "drv_i2c.h"
 #include "drv_sai.h"
 #include "drv_sai.h"

+ 2 - 2
bsp/nxp/lpc/lpc55sxx/Libraries/drivers/drv_sound_wm8904.c

@@ -9,8 +9,8 @@
  */
  */
 
 
 #include <rtthread.h>
 #include <rtthread.h>
-#include <drivers/audio.h>
-#include <drivers/i2c.h>
+#include <drivers/dev_audio.h>
+#include <drivers/dev_i2c.h>
 #include "drv_sound_wm8904.h"
 #include "drv_sound_wm8904.h"
 
 
 /**
 /**

+ 1 - 1
bsp/phytium/libraries/drivers/drv_i2c.c

@@ -21,7 +21,7 @@
 #include "fio_mux.h"
 #include "fio_mux.h"
 #include "fmio_hw.h"
 #include "fmio_hw.h"
 #include "fmio.h"
 #include "fmio.h"
-#include "drivers/i2c.h"
+#include "drivers/dev_i2c.h"
 #include "fparameters.h"
 #include "fparameters.h"
 #ifdef RT_USING_SMART
 #ifdef RT_USING_SMART
     #include <ioremap.h>
     #include <ioremap.h>

+ 1 - 1
bsp/renesas/ra6m3-hmi-board/board/ports/can_test.c

@@ -8,7 +8,7 @@
 
 
 #include <rtthread.h>
 #include <rtthread.h>
 #include "rtdevice.h"
 #include "rtdevice.h"
-#include "drivers/can.h"
+#include "drivers/dev_can.h"
 
 
 #ifdef BSP_USING_CAN0
 #ifdef BSP_USING_CAN0
 #define CAN_DEV_NAME "can0" /* CAN 设备名称 */
 #define CAN_DEV_NAME "can0" /* CAN 设备名称 */

+ 1 - 1
bsp/stm32/libraries/HAL_Drivers/drivers/drv_pwm.c

@@ -15,7 +15,7 @@
 #ifdef BSP_USING_PWM
 #ifdef BSP_USING_PWM
 #include "drv_config.h"
 #include "drv_config.h"
 #include "drv_tim.h"
 #include "drv_tim.h"
-#include <drivers/rt_drv_pwm.h>
+#include <drivers/dev_pwm.h>
 
 
 //#define DRV_DEBUG
 //#define DRV_DEBUG
 #define LOG_TAG             "drv.pwm"
 #define LOG_TAG             "drv.pwm"

+ 1 - 1
bsp/stm32/stm32f429-st-disco/board/ports/touch/drv_touch.c

@@ -9,7 +9,7 @@
  */
  */
 
 
 #include "drv_touch.h"
 #include "drv_touch.h"
-#include "drivers/i2c.h"
+#include "drivers/dev_i2c.h"
 
 
 #ifdef PKG_USING_LITTLEVGL2RTT
 #ifdef PKG_USING_LITTLEVGL2RTT
 #include "littlevgl2rtt.h"
 #include "littlevgl2rtt.h"

+ 1 - 1
bsp/w60x/drivers/drv_rtc.h

@@ -14,7 +14,7 @@
 #include <rtdevice.h>
 #include <rtdevice.h>
 
 
 #ifdef RT_USING_ALARM
 #ifdef RT_USING_ALARM
-#include <alarm.h>
+#include "drivers/dev_alarm.h"
 #endif
 #endif
 
 
 struct rt_rtc_device
 struct rt_rtc_device

+ 1 - 1
bsp/wch/risc-v/Libraries/ch32_drivers/drv_pwm.h

@@ -19,7 +19,7 @@
 #if defined(SOC_RISCV_SERIES_CH32V2)
 #if defined(SOC_RISCV_SERIES_CH32V2)
 #include "ch32v20x_tim.h"
 #include "ch32v20x_tim.h"
 #endif
 #endif
-#include <drivers/rt_drv_pwm.h>
+#include <drivers/dev_pwm.h>
 #include <drivers/hwtimer.h>
 #include <drivers/hwtimer.h>
 #include <board.h>
 #include <board.h>
 
 

+ 1 - 1
bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_gpio.c

@@ -8,7 +8,7 @@
  * 2022-07-15     Emuzit            first version
  * 2022-07-15     Emuzit            first version
  */
  */
 #include <rthw.h>
 #include <rthw.h>
-#include <drivers/pin.h>
+#include <drivers/dev_pin.h>
 #include "ch56x_gpio.h"
 #include "ch56x_gpio.h"
 #include "isr_sp.h"
 #include "isr_sp.h"
 
 

+ 2 - 2
bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_pwm.c

@@ -8,8 +8,8 @@
  * 2022-08-04     Emuzit            first version
  * 2022-08-04     Emuzit            first version
  */
  */
 #include <rthw.h>
 #include <rthw.h>
-#include <drivers/rt_drv_pwm.h>
-#include <drivers/pin.h>
+#include <drivers/dev_pwm.h>
+#include <drivers/dev_pin.h>
 #include "ch56x_pwm.h"
 #include "ch56x_pwm.h"
 #include "ch56x_sys.h"
 #include "ch56x_sys.h"
 
 

+ 1 - 1
bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_spi.c

@@ -9,7 +9,7 @@
  */
  */
 #include <rthw.h>
 #include <rthw.h>
 #include <drivers/spi.h>
 #include <drivers/spi.h>
-#include <drivers/pin.h>
+#include <drivers/dev_pin.h>
 #include "ch56x_spi.h"
 #include "ch56x_spi.h"
 #include "ch56x_sys.h"
 #include "ch56x_sys.h"
 
 

+ 1 - 1
bsp/wch/risc-v/Libraries/ch56x_drivers/ch56x_uart.c

@@ -15,7 +15,7 @@
 #else
 #else
     #include <drivers/serial.h>
     #include <drivers/serial.h>
 #endif
 #endif
-#include <drivers/pin.h>
+#include <drivers/dev_pin.h>
 #include "ch56x_sys.h"
 #include "ch56x_sys.h"
 #include "ch56x_uart.h"
 #include "ch56x_uart.h"
 #include "isr_sp.h"
 #include "isr_sp.h"

+ 1 - 1
bsp/wch/risc-v/ch32v103r-evt/board/board.h

@@ -15,7 +15,7 @@
 
 
 #include "ch32v10x.h"
 #include "ch32v10x.h"
 #include <rthw.h>
 #include <rthw.h>
-#include "drivers/pin.h"
+#include "drivers/dev_pin.h"
 #define CH32V10X_PIN_NUMBERS   64
 #define CH32V10X_PIN_NUMBERS   64
 
 
 /* board configuration */
 /* board configuration */

+ 1 - 1
bsp/wch/risc-v/ch32v208w-r0/applications/main.c

@@ -11,7 +11,7 @@
 #include "ch32v20x.h"
 #include "ch32v20x.h"
 #include <rtthread.h>
 #include <rtthread.h>
 #include <rthw.h>
 #include <rthw.h>
-#include "drivers/pin.h"
+#include "drivers/dev_pin.h"
 #include <board.h>
 #include <board.h>
 
 
 #define LED0 rt_pin_get("PA.0")
 #define LED0 rt_pin_get("PA.0")

+ 1 - 1
bsp/wch/risc-v/ch569w-evt/applications/main.c

@@ -9,7 +9,7 @@
  */
  */
 #include <rtthread.h>
 #include <rtthread.h>
 #include <rtdevice.h>
 #include <rtdevice.h>
-#include <drivers/pin.h>
+#include <drivers/dev_pin.h>
 #include "board.h"
 #include "board.h"
 
 
 void main(void)
 void main(void)

+ 2 - 2
bsp/wch/risc-v/ch569w-evt/applications/test.c

@@ -12,11 +12,11 @@
  * 2022-08-04     Emuzit            add pwm test
  * 2022-08-04     Emuzit            add pwm test
  */
  */
 #include <rtthread.h>
 #include <rtthread.h>
-#include <drivers/pin.h>
+#include <drivers/dev_pin.h>
 #include <drivers/watchdog.h>
 #include <drivers/watchdog.h>
 #include <drivers/hwtimer.h>
 #include <drivers/hwtimer.h>
 #include <drivers/spi.h>
 #include <drivers/spi.h>
-#include <drivers/rt_drv_pwm.h>
+#include <drivers/dev_pwm.h>
 #include "board.h"
 #include "board.h"
 
 
 #define PWM_CYCLE_MAX   255
 #define PWM_CYCLE_MAX   255

+ 1 - 1
bsp/wch/risc-v/ch569w-evt/board/board.c

@@ -8,7 +8,7 @@
  * 2022-07-15     Emuzit            first version
  * 2022-07-15     Emuzit            first version
  */
  */
 #include <rthw.h>
 #include <rthw.h>
-#include <drivers/pin.h>
+#include <drivers/dev_pin.h>
 #include "board.h"
 #include "board.h"
 #include "ch56x_pfic.h"
 #include "ch56x_pfic.h"
 #include "ch56x_uart.h"
 #include "ch56x_uart.h"

+ 0 - 0
components/drivers/audio/audio.c → components/drivers/audio/dev_audio.c


+ 1 - 1
components/drivers/audio/audio_pipe.c → components/drivers/audio/dev_audio_pipe.c

@@ -10,7 +10,7 @@
 
 
 #include <rthw.h>
 #include <rthw.h>
 #include <rtdevice.h>
 #include <rtdevice.h>
-#include "audio_pipe.h"
+#include "dev_audio_pipe.h"
 
 
 static void _rt_pipe_resume_writer(struct rt_audio_pipe *pipe)
 static void _rt_pipe_resume_writer(struct rt_audio_pipe *pipe)
 {
 {

+ 3 - 3
components/drivers/audio/audio_pipe.h → components/drivers/audio/dev_audio_pipe.h

@@ -6,8 +6,8 @@
  * Change Logs:
  * Change Logs:
  * Date           Author       Notes
  * Date           Author       Notes
  */
  */
-#ifndef __AUDIO_PIPE_H__
-#define __AUDIO_PIPE_H__
+#ifndef __DEV_AUDIO_PIPE_H__
+#define __DEV_AUDIO_PIPE_H__
 
 
 /**
 /**
  * Pipe Device
  * Pipe Device
@@ -72,4 +72,4 @@ rt_err_t rt_audio_pipe_create(const char *name, rt_int32_t flag, rt_size_t size)
 void rt_audio_pipe_destroy(struct rt_audio_pipe *pipe);
 void rt_audio_pipe_destroy(struct rt_audio_pipe *pipe);
 #endif /* RT_USING_HEAP */
 #endif /* RT_USING_HEAP */
 
 
-#endif /* __AUDIO_PIPE_H__ */
+#endif /* __DEV_AUDIO_PIPE_H__ */

+ 0 - 0
components/drivers/can/can.c → components/drivers/can/dev_can.c


+ 5 - 5
components/drivers/i2c/SConscript

@@ -3,16 +3,16 @@ from building import *
 
 
 cwd = GetCurrentDir()
 cwd = GetCurrentDir()
 src = Split("""
 src = Split("""
-i2c_core.c
-i2c_dev.c
+dev_i2c_core.c
+dev_i2c_dev.c
 """)
 """)
 
 
 if GetDepend('RT_USING_I2C_BITOPS'):
 if GetDepend('RT_USING_I2C_BITOPS'):
-    src = src + ['i2c-bit-ops.c']
+    src = src + ['dev_i2c_bit_ops.c']
 if GetDepend('RT_USING_SOFT_I2C'):
 if GetDepend('RT_USING_SOFT_I2C'):
-    src = src + ['soft_i2c.c']
+    src = src + ['dev_soft_i2c.c']
 if GetDepend(['RT_USING_DM']):
 if GetDepend(['RT_USING_DM']):
-    src += ['i2c_bus.c', 'i2c_dm.c']
+    src += ['dev_i2c_bus.c', 'dev_i2c_dm.c']
 
 
 # The set of source files associated with this SConscript file.
 # The set of source files associated with this SConscript file.
 path = [cwd + '/../include']
 path = [cwd + '/../include']

+ 0 - 0
components/drivers/i2c/i2c-bit-ops.c → components/drivers/i2c/dev_i2c_bit_ops.c


+ 1 - 1
components/drivers/i2c/i2c_bus.c → components/drivers/i2c/dev_i2c_bus.c

@@ -10,7 +10,7 @@
 
 
 #include <rtdevice.h>
 #include <rtdevice.h>
 
 
-#define DBG_TAG "i2c.bus"
+#define DBG_TAG "dev.i2c.bus"
 #define DBG_LVL DBG_INFO
 #define DBG_LVL DBG_INFO
 #include <rtdbg.h>
 #include <rtdbg.h>
 
 

+ 0 - 0
components/drivers/i2c/i2c_core.c → components/drivers/i2c/dev_i2c_core.c


+ 0 - 0
components/drivers/i2c/i2c_dev.c → components/drivers/i2c/dev_i2c_dev.c


+ 1 - 1
components/drivers/i2c/i2c_dm.c → components/drivers/i2c/dev_i2c_dm.c

@@ -10,7 +10,7 @@
 
 
 #include <rtdevice.h>
 #include <rtdevice.h>
 
 
-#define DBG_TAG "i2c.dm"
+#define DBG_TAG "dev.i2c.dm"
 #define DBG_LVL DBG_INFO
 #define DBG_LVL DBG_INFO
 #include <rtdbg.h>
 #include <rtdbg.h>
 
 

+ 0 - 0
components/drivers/i2c/soft_i2c.c → components/drivers/i2c/dev_soft_i2c.c


+ 3 - 3
components/drivers/include/drivers/alarm.h → components/drivers/include/drivers/dev_alarm.h

@@ -10,8 +10,8 @@
  * 2020-10-15     zhangsz           add alarm flags hour minute second.
  * 2020-10-15     zhangsz           add alarm flags hour minute second.
  */
  */
 
 
-#ifndef __ALARM_H__
-#define __ALARM_H__
+#ifndef __DEV_ALARM_H__
+#define __DEV_ALARM_H__
 
 
 #include <sys/time.h>
 #include <sys/time.h>
 #include <rtdef.h>
 #include <rtdef.h>
@@ -72,4 +72,4 @@ rt_err_t rt_alarm_start(rt_alarm_t alarm);
 rt_err_t rt_alarm_stop(rt_alarm_t alarm);
 rt_err_t rt_alarm_stop(rt_alarm_t alarm);
 int rt_alarm_system_init(void);
 int rt_alarm_system_init(void);
 
 
-#endif /* __ALARM_H__ */
+#endif /* __DEV_ALARM_H__ */

+ 4 - 4
components/drivers/include/drivers/audio.h → components/drivers/include/drivers/dev_audio.h

@@ -10,10 +10,10 @@
  *
  *
  */
  */
 
 
-#ifndef __AUDIO_H__
-#define __AUDIO_H__
+#ifndef __DEV_AUDIO_H__
+#define __DEV_AUDIO_H__
 
 
-#include "audio_pipe.h"
+#include "dev_audio_pipe.h"
 
 
 /* AUDIO command */
 /* AUDIO command */
 #define _AUDIO_CTL(a) (RT_DEVICE_CTRL_BASE(Sound) + a)
 #define _AUDIO_CTL(a) (RT_DEVICE_CTRL_BASE(Sound) + a)
@@ -173,4 +173,4 @@ void        rt_audio_rx_done(struct rt_audio_device *audio, rt_uint8_t *pbuf, rt
 
 
 #define CODEC_VOLUME_MAX            (63)
 #define CODEC_VOLUME_MAX            (63)
 
 
-#endif /* __AUDIO_H__ */
+#endif /* __DEV_AUDIO_H__ */

+ 3 - 3
components/drivers/include/drivers/can.h → components/drivers/include/drivers/dev_can.h

@@ -10,8 +10,8 @@
  * 2022-05-08     hpmicro           add CANFD support, fixed typos
  * 2022-05-08     hpmicro           add CANFD support, fixed typos
  */
  */
 
 
-#ifndef CAN_H_
-#define CAN_H_
+#ifndef __DEV_CAN_H_
+#define __DEV_CAN_H_
 
 
 #include <rtthread.h>
 #include <rtthread.h>
 
 
@@ -360,5 +360,5 @@ rt_err_t rt_hw_can_register(struct rt_can_device    *can,
                             const struct rt_can_ops *ops,
                             const struct rt_can_ops *ops,
                             void                    *data);
                             void                    *data);
 void rt_hw_can_isr(struct rt_can_device *can, int event);
 void rt_hw_can_isr(struct rt_can_device *can, int event);
-#endif /*_CAN_H*/
+#endif /*__DEV_CAN_H*/
 
 

+ 21 - 2
components/drivers/include/drivers/i2c.h → components/drivers/include/drivers/dev_i2c.h

@@ -9,8 +9,8 @@
  * 2021-04-20     RiceChen      added support for bus control api
  * 2021-04-20     RiceChen      added support for bus control api
  */
  */
 
 
-#ifndef __I2C_H__
-#define __I2C_H__
+#ifndef __DEV_I2C_H__
+#define __DEV_I2C_H__
 
 
 #include <rtthread.h>
 #include <rtthread.h>
 
 
@@ -26,6 +26,22 @@ extern "C" {
 #define RT_I2C_NO_READ_ACK      (1u << 6)  /* when I2C reading, we do not ACK */
 #define RT_I2C_NO_READ_ACK      (1u << 6)  /* when I2C reading, we do not ACK */
 #define RT_I2C_NO_STOP          (1u << 7)
 #define RT_I2C_NO_STOP          (1u << 7)
 
 
+#define RT_I2C_DEV_CTRL_10BIT        (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x01)
+#define RT_I2C_DEV_CTRL_ADDR         (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x02)
+#define RT_I2C_DEV_CTRL_TIMEOUT      (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x03)
+#define RT_I2C_DEV_CTRL_RW           (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x04)
+#define RT_I2C_DEV_CTRL_CLK          (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x05)
+#define RT_I2C_DEV_CTRL_UNLOCK       (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x06)
+#define RT_I2C_DEV_CTRL_GET_STATE    (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x07)
+#define RT_I2C_DEV_CTRL_GET_MODE     (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x08)
+#define RT_I2C_DEV_CTRL_GET_ERROR    (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x09)
+
+struct rt_i2c_priv_data
+{
+    struct rt_i2c_msg  *msgs;
+    rt_size_t  number;
+};
+
 struct rt_i2c_msg
 struct rt_i2c_msg
 {
 {
     rt_uint16_t addr;
     rt_uint16_t addr;
@@ -99,6 +115,9 @@ rt_err_t rt_i2c_device_register(struct rt_i2c_client *client);
 #define RT_I2C_DRIVER_EXPORT(driver)  RT_DRIVER_EXPORT(driver, i2c, BUILIN)
 #define RT_I2C_DRIVER_EXPORT(driver)  RT_DRIVER_EXPORT(driver, i2c, BUILIN)
 #endif /* RT_USING_DM */
 #endif /* RT_USING_DM */
 
 
+rt_err_t rt_i2c_bus_device_device_init(struct rt_i2c_bus_device *bus,
+                                       const char               *name);
+
 rt_err_t rt_i2c_bus_device_register(struct rt_i2c_bus_device *bus,
 rt_err_t rt_i2c_bus_device_register(struct rt_i2c_bus_device *bus,
                                     const char               *bus_name);
                                     const char               *bus_name);
 struct rt_i2c_bus_device *rt_i2c_bus_device_find(const char *bus_name);
 struct rt_i2c_bus_device *rt_i2c_bus_device_find(const char *bus_name);

+ 2 - 2
components/drivers/include/drivers/i2c-bit-ops.h → components/drivers/include/drivers/dev_i2c_bit_ops.h

@@ -8,8 +8,8 @@
  * 2012-04-25     weety         first version
  * 2012-04-25     weety         first version
  */
  */
 
 
-#ifndef __I2C_BIT_OPS_H__
-#define __I2C_BIT_OPS_H__
+#ifndef __DEV_I2C_BIT_OPS_H__
+#define __DEV_I2C_BIT_OPS_H__
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C" {
 extern "C" {

+ 3 - 3
components/drivers/include/drivers/i2c_dm.h → components/drivers/include/drivers/dev_i2c_dm.h

@@ -8,8 +8,8 @@
  * 2022-11-26     GuEe-GUI     first version
  * 2022-11-26     GuEe-GUI     first version
  */
  */
 
 
-#ifndef __I2C_DM_H__
-#define __I2C_DM_H__
+#ifndef __DEV_I2C_DM_H__
+#define __DEV_I2C_DM_H__
 
 
 #include <rthw.h>
 #include <rthw.h>
 #include <rtthread.h>
 #include <rtthread.h>
@@ -48,4 +48,4 @@ rt_inline rt_err_t i2c_timings_ofw_parse(struct rt_ofw_node *dev_np, struct i2c_
 
 
 void i2c_bus_scan_clients(struct rt_i2c_bus_device *bus);
 void i2c_bus_scan_clients(struct rt_i2c_bus_device *bus);
 
 
-#endif /* __I2C_DM_H__ */
+#endif /* __DEV_I2C_DM_H__ */

+ 2 - 2
components/drivers/include/drivers/pin.h → components/drivers/include/drivers/dev_pin.h

@@ -9,8 +9,8 @@
  * 2017-10-20      ZYH          add mode open drain and input pull down
  * 2017-10-20      ZYH          add mode open drain and input pull down
  */
  */
 
 
-#ifndef PIN_H__
-#define PIN_H__
+#ifndef DEV_PIN_H__
+#define DEV_PIN_H__
 
 
 #include <rtthread.h>
 #include <rtthread.h>
 
 

+ 3 - 3
components/drivers/include/drivers/rt_drv_pwm.h → components/drivers/include/drivers/dev_pwm.h

@@ -9,8 +9,8 @@
  * 2022-09-24     yuqi         add phase and dead time configuration
  * 2022-09-24     yuqi         add phase and dead time configuration
  */
  */
 
 
-#ifndef __DRV_PWM_H_INCLUDE__
-#define __DRV_PWM_H_INCLUDE__
+#ifndef __DEV_PWM_H__
+#define __DEV_PWM_H__
 
 
 #include <rtthread.h>
 #include <rtthread.h>
 
 
@@ -63,4 +63,4 @@ rt_err_t rt_pwm_set_pulse(struct rt_device_pwm *device, int channel, rt_uint32_t
 rt_err_t rt_pwm_set_dead_time(struct rt_device_pwm *device, int channel, rt_uint32_t dead_time);
 rt_err_t rt_pwm_set_dead_time(struct rt_device_pwm *device, int channel, rt_uint32_t dead_time);
 rt_err_t rt_pwm_set_phase(struct rt_device_pwm *device, int channel, rt_uint32_t phase);
 rt_err_t rt_pwm_set_phase(struct rt_device_pwm *device, int channel, rt_uint32_t phase);
 
 
-#endif /* __DRV_PWM_H_INCLUDE__ */
+#endif /* __DEV_PWM_H__ */

+ 3 - 3
components/drivers/include/drivers/rtc.h → components/drivers/include/drivers/dev_rtc.h

@@ -11,8 +11,8 @@
  * 2022-04-05     tyx          add timestamp function
  * 2022-04-05     tyx          add timestamp function
  */
  */
 
 
-#ifndef __RTC_H__
-#define __RTC_H__
+#ifndef __DEV_RTC_H__
+#define __DEV_RTC_H__
 
 
 #include <rtdef.h>
 #include <rtdef.h>
 #include <sys/time.h>
 #include <sys/time.h>
@@ -79,4 +79,4 @@ rt_err_t rt_soft_rtc_set_source(const char *name);
 }
 }
 #endif
 #endif
 
 
-#endif /* __RTC_H__ */
+#endif /* __DEV_RTC_H__ */

+ 0 - 44
components/drivers/include/drivers/i2c_dev.h

@@ -1,44 +0,0 @@
-/*
- * Copyright (c) 2006-2023, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date           Author        Notes
- * 2012-04-25     weety         first version
- * 2021-04-20     RiceChen      added bus clock command
- */
-
-#ifndef __I2C_DEV_H__
-#define __I2C_DEV_H__
-
-#include <rtthread.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define RT_I2C_DEV_CTRL_10BIT        (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x01)
-#define RT_I2C_DEV_CTRL_ADDR         (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x02)
-#define RT_I2C_DEV_CTRL_TIMEOUT      (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x03)
-#define RT_I2C_DEV_CTRL_RW           (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x04)
-#define RT_I2C_DEV_CTRL_CLK          (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x05)
-#define RT_I2C_DEV_CTRL_UNLOCK       (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x06)
-#define RT_I2C_DEV_CTRL_GET_STATE    (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x07)
-#define RT_I2C_DEV_CTRL_GET_MODE     (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x08)
-#define RT_I2C_DEV_CTRL_GET_ERROR    (RT_DEVICE_CTRL_BASE(I2CBUS) + 0x09)
-
-struct rt_i2c_priv_data
-{
-    struct rt_i2c_msg  *msgs;
-    rt_size_t  number;
-};
-
-rt_err_t rt_i2c_bus_device_device_init(struct rt_i2c_bus_device *bus,
-                                       const char               *name);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif

+ 1 - 1
components/drivers/include/drivers/sensor.h

@@ -12,7 +12,7 @@
 #define __SENSOR_H__
 #define __SENSOR_H__
 
 
 #include <rtthread.h>
 #include <rtthread.h>
-#include "pin.h"
+#include "dev_pin.h"
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C" {
 extern "C" {

+ 1 - 1
components/drivers/include/drivers/sensor_v2.h

@@ -13,7 +13,7 @@
 #define __SENSOR_H__
 #define __SENSOR_H__
 
 
 #include <rtthread.h>
 #include <rtthread.h>
-#include "pin.h"
+#include "dev_pin.h"
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C" {
 extern "C" {

+ 1 - 1
components/drivers/include/drivers/spi.h

@@ -15,7 +15,7 @@
 
 
 #include <stdlib.h>
 #include <stdlib.h>
 #include <rtthread.h>
 #include <rtthread.h>
-#include <drivers/pin.h>
+#include <drivers/dev_pin.h>
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C"{
 extern "C"{

+ 1 - 1
components/drivers/include/drivers/touch.h

@@ -12,7 +12,7 @@
 #define __TOUCH_H__
 #define __TOUCH_H__
 
 
 #include <rtthread.h>
 #include <rtthread.h>
-#include "pin.h"
+#include "dev_pin.h"
 
 
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C" {
 extern "C" {

+ 9 - 10
components/drivers/include/rtdevice.h

@@ -59,9 +59,9 @@ extern "C" {
 #endif /* RT_USING_DM */
 #endif /* RT_USING_DM */
 
 
 #ifdef RT_USING_RTC
 #ifdef RT_USING_RTC
-#include "drivers/rtc.h"
+#include "drivers/dev_rtc.h"
 #ifdef RT_USING_ALARM
 #ifdef RT_USING_ALARM
-#include "drivers/alarm.h"
+#include "drivers/dev_alarm.h"
 #endif
 #endif
 #endif /* RT_USING_RTC */
 #endif /* RT_USING_RTC */
 
 
@@ -94,15 +94,14 @@ extern "C" {
 #endif /* RT_USING_SERIAL */
 #endif /* RT_USING_SERIAL */
 
 
 #ifdef RT_USING_I2C
 #ifdef RT_USING_I2C
-#include "drivers/i2c.h"
-#include "drivers/i2c_dev.h"
+#include "drivers/dev_i2c.h"
 
 
 #ifdef RT_USING_I2C_BITOPS
 #ifdef RT_USING_I2C_BITOPS
-#include "drivers/i2c-bit-ops.h"
+#include "drivers/dev_i2c_bit_ops.h"
 #endif /* RT_USING_I2C_BITOPS */
 #endif /* RT_USING_I2C_BITOPS */
 
 
 #ifdef RT_USING_DM
 #ifdef RT_USING_DM
-#include "drivers/i2c_dm.h"
+#include "drivers/dev_i2c_dm.h"
 #endif /* RT_USING_DM */
 #endif /* RT_USING_DM */
 #endif /* RT_USING_I2C */
 #endif /* RT_USING_I2C */
 
 
@@ -123,7 +122,7 @@ extern "C" {
 #endif /* RT_USING_WDT */
 #endif /* RT_USING_WDT */
 
 
 #ifdef RT_USING_PIN
 #ifdef RT_USING_PIN
-#include "drivers/pin.h"
+#include "drivers/dev_pin.h"
 #endif /* RT_USING_PIN */
 #endif /* RT_USING_PIN */
 
 
 #ifdef RT_USING_SENSOR
 #ifdef RT_USING_SENSOR
@@ -135,7 +134,7 @@ extern "C" {
 #endif /* RT_USING_SENSOR */
 #endif /* RT_USING_SENSOR */
 
 
 #ifdef RT_USING_CAN
 #ifdef RT_USING_CAN
-#include "drivers/can.h"
+#include "drivers/dev_can.h"
 #endif /* RT_USING_CAN */
 #endif /* RT_USING_CAN */
 
 
 #ifdef RT_USING_HWTIMER
 #ifdef RT_USING_HWTIMER
@@ -143,7 +142,7 @@ extern "C" {
 #endif /* RT_USING_HWTIMER */
 #endif /* RT_USING_HWTIMER */
 
 
 #ifdef RT_USING_AUDIO
 #ifdef RT_USING_AUDIO
-#include "drivers/audio.h"
+#include "drivers/dev_audio.h"
 #endif /* RT_USING_AUDIO */
 #endif /* RT_USING_AUDIO */
 
 
 #ifdef RT_USING_CPUTIME
 #ifdef RT_USING_CPUTIME
@@ -159,7 +158,7 @@ extern "C" {
 #endif /* RT_USING_DAC */
 #endif /* RT_USING_DAC */
 
 
 #ifdef RT_USING_PWM
 #ifdef RT_USING_PWM
-#include "drivers/rt_drv_pwm.h"
+#include "drivers/dev_pwm.h"
 #endif /* RT_USING_PWM */
 #endif /* RT_USING_PWM */
 
 
 #ifdef RT_USING_PM
 #ifdef RT_USING_PM

+ 3 - 3
components/drivers/pin/SConscript

@@ -8,13 +8,13 @@ if not GetDepend(['RT_USING_PIN']):
 cwd = GetCurrentDir()
 cwd = GetCurrentDir()
 CPPPATH = [cwd + '/../include']
 CPPPATH = [cwd + '/../include']
 
 
-src = ['pin.c']
+src = ['dev_pin.c']
 
 
 if GetDepend(['RT_USING_DM']):
 if GetDepend(['RT_USING_DM']):
-    src += ['pin_dm.c']
+    src += ['dev_pin_dm.c']
 
 
 if GetDepend(['RT_USING_OFW']):
 if GetDepend(['RT_USING_OFW']):
-    src += ['pin_ofw.c']
+    src += ['dev_pin_ofw.c']
 
 
 group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
 group = DefineGroup('DeviceDrivers', src, depend = [''], CPPPATH = CPPPATH)
 
 

+ 1 - 1
components/drivers/pin/pin.c → components/drivers/pin/dev_pin.c

@@ -10,7 +10,7 @@
  * 2022-04-29     WangQiang    add pin operate command in MSH
  * 2022-04-29     WangQiang    add pin operate command in MSH
  */
  */
 
 
-#include <drivers/pin.h>
+#include <drivers/dev_pin.h>
 
 
 static struct rt_device_pin _hw_pin;
 static struct rt_device_pin _hw_pin;
 static rt_ssize_t _pin_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size)
 static rt_ssize_t _pin_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size)

+ 1 - 1
components/drivers/pin/pin_dm.c → components/drivers/pin/dev_pin_dm.c

@@ -8,7 +8,7 @@
  * 2022-11-26     GuEe-GUI     first version
  * 2022-11-26     GuEe-GUI     first version
  */
  */
 
 
-#include "pin_dm.h"
+#include "dev_pin_dm.h"
 
 
 static void pin_dm_irq_mask(struct rt_pic_irq *pirq)
 static void pin_dm_irq_mask(struct rt_pic_irq *pirq)
 {
 {

+ 1 - 1
components/drivers/pin/pin_dm.h → components/drivers/pin/dev_pin_dm.h

@@ -18,4 +18,4 @@
 rt_err_t pin_pic_handle_isr(struct rt_device_pin *gpio, rt_base_t pin);
 rt_err_t pin_pic_handle_isr(struct rt_device_pin *gpio, rt_base_t pin);
 rt_err_t pin_pic_init(struct rt_device_pin *gpio);
 rt_err_t pin_pic_init(struct rt_device_pin *gpio);
 
 
-#endif /* __PIN_DM_H__ */
+#endif /* __DEV_PIN_DM_H__ */

+ 1 - 1
components/drivers/pin/pin_ofw.c → components/drivers/pin/dev_pin_ofw.c

@@ -10,7 +10,7 @@
 
 
 #include <dt-bindings/pin/pin.h>
 #include <dt-bindings/pin/pin.h>
 
 
-#include "pin_dm.h"
+#include "dev_pin_dm.h"
 
 
 static const char * const gpio_suffixes[] =
 static const char * const gpio_suffixes[] =
 {
 {

+ 3 - 3
components/drivers/rtc/SConscript

@@ -7,11 +7,11 @@ CPPPATH = [cwd + '/../include']
 group = []
 group = []
 
 
 if GetDepend(['RT_USING_RTC']):
 if GetDepend(['RT_USING_RTC']):
-    src = src + ['rtc.c']
+    src = src + ['dev_rtc.c']
     if GetDepend(['RT_USING_ALARM']):
     if GetDepend(['RT_USING_ALARM']):
-        src = src + ['alarm.c']
+        src = src + ['dev_alarm.c']
     if GetDepend(['RT_USING_SOFT_RTC']):
     if GetDepend(['RT_USING_SOFT_RTC']):
-        src = src + ['soft_rtc.c']
+        src = src + ['dev_soft_rtc.c']
 
 
 group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_RTC'], CPPPATH = CPPPATH)
 group = DefineGroup('DeviceDrivers', src, depend = ['RT_USING_RTC'], CPPPATH = CPPPATH)
 
 

+ 0 - 0
components/drivers/rtc/alarm.c → components/drivers/rtc/dev_alarm.c


+ 1 - 1
components/drivers/rtc/rtc.c → components/drivers/rtc/dev_rtc.c

@@ -17,7 +17,7 @@
 #include <string.h>
 #include <string.h>
 #include <stdlib.h>
 #include <stdlib.h>
 #include <rtthread.h>
 #include <rtthread.h>
-#include <drivers/rtc.h>
+#include <drivers/dev_rtc.h>
 
 
 #ifdef RT_USING_RTC
 #ifdef RT_USING_RTC
 
 

+ 0 - 0
components/drivers/rtc/soft_rtc.c → components/drivers/rtc/dev_soft_rtc.c