summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxqyjlj <[email protected]>2023-11-02 20:16:02 +0800
committerGitHub <[email protected]>2023-11-02 20:16:02 +0800
commit1b6f0e88a309251de7ccaa21bf5e078c8d9eb8ed (patch)
treec1257006c128c82677b60900396d1549a0574452
parent27aac584a56b7a1baf4cae4b78c3b397db724e1e (diff)
🐞 fix: fix d1s smart build (#8212)
-rw-r--r--bsp/allwinner/libraries/drivers/sdmmc/drv_sdmmc.h1
-rw-r--r--bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc/blkpart.c1
-rw-r--r--libcpu/risc-v/t-head/c906/cpuport.h2
3 files changed, 3 insertions, 1 deletions
diff --git a/bsp/allwinner/libraries/drivers/sdmmc/drv_sdmmc.h b/bsp/allwinner/libraries/drivers/sdmmc/drv_sdmmc.h
index c8aa75c442..47fd8112a4 100644
--- a/bsp/allwinner/libraries/drivers/sdmmc/drv_sdmmc.h
+++ b/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
diff --git a/bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc/blkpart.c b/bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc/blkpart.c
index 994e95574c..16778a5f36 100644
--- a/bsp/allwinner/libraries/sunxi-hal/hal/source/sdmmc/blkpart.c
+++ b/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)
diff --git a/libcpu/risc-v/t-head/c906/cpuport.h b/libcpu/risc-v/t-head/c906/cpuport.h
index 640c5281cf..68780bfe6d 100644
--- a/libcpu/risc-v/t-head/c906/cpuport.h
+++ b/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()
{