🐞 fix: fix d1s smart build (#8212)

This commit is contained in:
xqyjlj 2023-11-02 20:16:02 +08:00 committed by GitHub
parent 27aac584a5
commit 1b6f0e88a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

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

View File

@ -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)

View File

@ -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()
{