代码改变世界

随笔档案-2013年06月

SD卡 驱动层测速

2013-06-26 11:59 by 至上, 676 阅读, 收藏, 编辑
摘要: init_timer(&timer1); timer1.function = test_time; timer1.data = 0; timer1.expires = jiffies + msecs_to_jiffies(1); add_timer(&timer1); sd_test(mmc); printk("count = %d \n",count);sd_test()函数写在probe函数中,但要等待sd初始化完毕才行,需要在上电时就插入SD卡,而不要等待系统起来之后。另外,如果mmc_rescan函数使用的工作队列实现的,那么它与probe就属于两. 阅读全文
点击右上角即可分享
微信分享提示