mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
feat(bsp/gd32f1-f4/drv_sdio):增加gd32下sdio驱动 (#6176)
This commit is contained in:
1 parent
5a67132cf8
commit
1008a7700a
8 files changed
+3240
No files matched your search
@@ -48,6 +48,7 @@ if GetDepend(['RT_USING_WDT']):
|
||||
|
||||
if GetDepend(['RT_USING_SDIO']):
|
||||
src += ['GD32F10x_standard_peripheral/Source/gd32f10x_sdio.c']
|
||||
src += ['GD32F10x_standard_peripheral/Source/gd32f10x_dma.c']
|
||||
|
||||
path = [
|
||||
cwd + '/CMSIS/GD/GD32F10x/Include',
|
||||
|
||||
@@ -44,6 +44,7 @@ if GetDepend(['RT_USING_WDT']):
|
||||
|
||||
if GetDepend(['RT_USING_SDIO']):
|
||||
src += ['GD32F20x_standard_peripheral/Source/gd32f20x_sdio.c']
|
||||
src += ['GD32F20x_standard_peripheral/Source/gd32f20x_dma.c']
|
||||
|
||||
path = [
|
||||
cwd + '/CMSIS/GD/GD32F20x/Include',
|
||||
|
||||
@@ -44,6 +44,7 @@ if GetDepend(['RT_USING_WDT']):
|
||||
|
||||
if GetDepend(['RT_USING_SDIO']):
|
||||
src += ['GD32F30x_standard_peripheral/Source/gd32f30x_sdio.c']
|
||||
src += ['GD32F30x_standard_peripheral/Source/gd32f30x_dma.c']
|
||||
|
||||
path = [
|
||||
cwd + '/CMSIS/GD/GD32F30x/Include',
|
||||
|
||||
@@ -45,6 +45,7 @@ if GetDepend(['RT_USING_WDT']):
|
||||
|
||||
if GetDepend(['RT_USING_SDIO']):
|
||||
src += ['GD32F4xx_standard_peripheral/Source/gd32f4xx_sdio.c']
|
||||
src += ['GD32F4xx_standard_peripheral/Source/gd32f4xx_dma.c']
|
||||
|
||||
path = [
|
||||
cwd + '/CMSIS/GD/GD32F4xx/Include',
|
||||
|
||||
@@ -44,6 +44,10 @@ if GetDepend('RT_USING_HWTIMER'):
|
||||
# add adc drivers.
|
||||
if GetDepend('RT_USING_ADC'):
|
||||
src += ['drv_adc.c']
|
||||
|
||||
# add sdio drivers.
|
||||
if GetDepend('RT_USING_SDIO'):
|
||||
src += ['drv_sdio.c']
|
||||
|
||||
path = [cwd]
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright (c) 2006-2021, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2018-11-15 SummerGift first version
|
||||
*/
|
||||
|
||||
/*
|
||||
* NOTE: DO NOT include this file on the header file.
|
||||
*/
|
||||
|
||||
#ifndef LOG_TAG
|
||||
#define DBG_TAG "drv"
|
||||
#else
|
||||
#define DBG_TAG LOG_TAG
|
||||
#endif /* LOG_TAG */
|
||||
|
||||
#ifdef DRV_DEBUG
|
||||
#define DBG_LVL DBG_LOG
|
||||
#else
|
||||
#define DBG_LVL DBG_INFO
|
||||
#endif /* DRV_DEBUG */
|
||||
|
||||
#include <rtdbg.h>
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user