当前位置:网站首页>STM32MP157A driver development | 02-Use sdmmc interface to read and write sd card (hot swap)
STM32MP157A driver development | 02-Use sdmmc interface to read and write sd card (hot swap)
2022-08-06 20:50:00 【Mculover666】
一、硬件原理图

二、添加设备树描述
cd引脚pinctrl描述:
&pinctrl {
pinctrl-names = "default";
pinctrl-0 = <&hog_pins_a>;
hog_pins_a: hog-0 {
pins {
pinmux = <STM32_PINMUX('F', 2, GPIO)>; /* SD1 CD */
};
};
};
sdmmc1接口描述:
&sdmmc1 {
pinctrl-names = "default", "opendrain", "sleep";
pinctrl-0 = <&sdmmc1_b4_pins_a>;
pinctrl-1 = <&sdmmc1_b4_od_pins_a>;
pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>;
cd-gpios = <&gpiof 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
disable-wp;
st,neg-edge;
bus-width = <4>;
vmmc-supply = <&v3v3>;
status = "okay";
};
三、测试

边栏推荐
- Kotlin - 协程调度器 CoroutineDispatcher
- 【无标题】BOOT SERVICES函数实现原型:
- Pytest learning-yaml+parametrize interface combat
- Edge Computing: Inventory 100 Knowledge Points
- LeetCode Daily Question (2007. Find Original Array From Doubled Array)
- 为什么说“3D建模”是未来不可少的行业
- Data too long for column ‘xxx‘ at row 1
- R语言拟合ARIMA模型:剔除ARIMA模型中不显著的系数、通过分析系数的置信区间判断系数是否是冗余系数(参数)、以及是否需要被删除
- R语言ggplot2可视化:使用patchwork包将两个ggplot2可视化结果组合起来、使用labs函数为第二个子图添加标题信息
- 高并发架构设计从0到1全部合集,强烈建议收藏!
猜你喜欢

Pytest学习-yaml+parametrize接口实战

初探基于OSG+OCC的CAD之GMSH体网格划分与显示

我们来聊聊锁升级吧

如何自动识别爬虫网页的编码

IO进程线程->进程间的通信->day8

复现一个循环问题以及两个循环问题

嵌入式系统驱动初级【9】——中断处理上_基础框架

Deep understanding of isolation (MVCC, snapshot, undo log, Read View)
![[target detection] data enhancement: YOLO official data enhancement implementation / simple use of imgaug](/img/08/faff4ca8d77697d99d6dd715403468.png)
[target detection] data enhancement: YOLO official data enhancement implementation / simple use of imgaug

xss-labs靶场1~7详解
随机推荐
标准C语言学习总结13
Kotlin - 协程构建器 CoroutineBuilder
Reproduce one loop problem and two loop problems
数据字典中的三种类型数据表
Kotlin 协程 - 协程启动模式 CoroutineStart
keep-alive动态移除缓存
系统学习CV-pytorch扩展-timm
Pytest learning - yaml + parametrize use
从0到1构建可视化大屏-员工管理
如何给WordPress博客网站换个漂亮的字体
初探基于OSG+OCC的CAD之GMSH体网格划分与显示
Kotlin - Coroutine Builder CoroutineBuilder
Pytest learning - reading YAML files
原型链中的函数和对象
The optimization method to solve the slow loading of the website caused by Google AdSense
Servlet中上传文件(用到DiskFileItemFactory)
Es nested object
SimpleDateFormat常用格式代码一览
i.MX6ULL配置GPIO一共需要几步?
开传奇GM常用网站