Browse Source

🐞 fix: fix d1s smart build (#8212)

xqyjlj 1 year ago
parent
commit
1b6f0e88a3

+ 1 - 0
bsp/allwinner/libraries/drivers/sdmmc/drv_sdmmc.h

@@ -12,6 +12,7 @@
 #define DRV_SDMMC_H__
 
 #include <rtdef.h>
+#include <rtdevice.h>
 
 #define SDMMC_CARD_NR 2
 

+ 1 - 0
bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc/blkpart.c

@@ -8,6 +8,7 @@
 #include <string.h>
 #include <blkpart.h>
 #include <rtthread.h>
+#include <rtdevice.h>
 #define MIN(a, b) ((a) > (b) ? (b) : (a))
 #define ALIGN_DOWN(x, a) __ALIGN_KERNEL((x) - ((a) - 1), (a))
 #define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1)

+ 1 - 1
libcpu/risc-v/t-head/c906/cpuport.h

@@ -37,7 +37,7 @@
 #define CTX_REG_NR  (CTX_GENERAL_REG_NR + CTX_FPU_REG_NR)
 
 #ifndef __ASSEMBLY__
-#include <rtthread.h>
+#include <rtdef.h>
 
 rt_inline void rt_hw_dsb()
 {