91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.42MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-11-07
  • 語言: 其他
  • 標簽: stm32??spi??

資源簡介

一個基于STM32的SD/MicroSD卡讀卡器,通過spi驅動,在不接USB的情況下,單片機可以通過FatFs訪問SD卡,插入USB以后,立即轉換成電腦上的海量存儲設備,可當u盤使用

資源截圖

代碼片段和文件信息

/*
*******************************************************************************
*?Copyright?(c)?2008
*?All?rights?reserved.
*?
*?File?Name :?APP.c
*?Project?? :?
*?Author :?
*?Version?? :?1.0.0
*?Date :?12/11/2008
*?Description :?
*******************************************************************************
*/

/*
*************************************修改日志**********************************

*******************************************************************************
*/

#include?“Includes.h“

/*
*******************************************************************************
*?常量定義
*******************************************************************************
*/

/*
*******************************************************************************
*?類型定義
*******************************************************************************
*/

/*
*******************************************************************************
*?變量定義
*******************************************************************************
*/

/*
*******************************************************************************
*?函數原型定義
*******************************************************************************
*/

void?APP_SystemSleep(u8?cmd)
{
BSP_GpsOff();
//BSP_LcdBackLightOff();

????/*?Request?to?enter?STOP?mode?with?regulator?in?low?power?mode*/
????PWR_EnterSTOPMode(PWR_Regulator_LowPower?PWR_STOPEntry_WFI);
????BSP_SYSCLKConfig_STOP();

BSP_GpsOn();
????Trace(“Exit?stop?mode!\r\n“);
}

void?APP_MsgExplain(u16?Msg)
{
s8?MsgBuf[100];

memset(MsgBuf?0?100);
switch?(Msg)
{
//case?MSG_LED_ON: strcpy(MsgBuf?“LED?Control!“);break;
//case?MSG_FACTORY_RESET: strcpy(MsgBuf?“Factory?reset!“);break;
//case?MSG_SYSTEM_RESET: strcpy(MsgBuf?“System?reset!“);break;
//case?MSG_RTC_REPORT_TIME: strcpy(MsgBuf?“Update?time!“);break;
default: strcpy(MsgBuf?“Unkonw?message!“);break;
}

MyPrintf(“App?get?msg:%x(%s)\r\n“?Msg?MsgBuf);
}

/*
?*******************************************************************************
?*?函數描述:APP消息處理機
?*?輸入參數:無
?*?輸出參數:無
?*?返回參數:無
?*******************************************************************************
?*/
void?APP_MsgHandle(void)
{
u16?Msg?=?0;

if?(GetMsg(MSG_TYPE_TO_APP?&Msg)?==?-1)
{
return;
}

APP_MsgExplain(Msg);

switch?(Msg)
{

default:????//do?nothing
break;
}
}

/*
*******************************************************************************
?*?函數描述:APP任務(10ms執行周期)
?*?輸入參數:無
?*?輸出參數:無
?*?返回參數:無
?
*******************************************************************************
?*/
void?APP_Task(void)
{
static?u16?timecnt?=?0;

APP_MsgHandle();
timecnt++;
if?(timecnt?>?9)
{
timecnt?=?0;
}
}



?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????2929??2012-03-16?22:25??USB讀卡器\App\app.c

?????文件???????1380??2012-03-16?22:25??USB讀卡器\App\app.h

?????文件???????4129??2012-03-16?22:25??USB讀卡器\App\ConfigMng.c

?????文件???????1545??2012-03-16?22:25??USB讀卡器\App\ConfigMng.h

?????文件???????5820??2012-03-16?22:25??USB讀卡器\App\FileRec.c

?????文件???????1880??2012-03-16?22:25??USB讀卡器\App\FileRec.h

?????文件???????5723??2012-03-16?22:25??USB讀卡器\App\main.c

?????文件??????21890??2012-03-09?13:28??USB讀卡器\App\MMC_SD.C

?????文件???????2570??2012-03-09?13:27??USB讀卡器\App\MMC_SD.H

?????文件???????5404??2012-03-08?20:58??USB讀卡器\App\spi.c

?????文件????????470??2010-11-15?22:40??USB讀卡器\App\spi.h

?????文件???????3125??2009-10-16?17:05??USB讀卡器\App\stm32f10x_conf.h

?????文件??????10012??2012-03-08?20:47??USB讀卡器\App\stm32f10x_it.c

?????文件???????1976??2009-06-23?13:55??USB讀卡器\App\stm32f10x_it.h

?????文件???????1179??2010-08-14?20:27??USB讀卡器\App\USART.c

?????文件????????245??2009-10-16?15:50??USB讀卡器\App\USART.h

?????文件???????1383??2012-01-12?17:42??USB讀卡器\common\notifier_chain.c

?????文件???????1001??2012-01-12?17:42??USB讀卡器\common\notifier_chain.h

?????文件???????2253??2012-02-28?09:25??USB讀卡器\common\softirq.c

?????文件????????539??2012-01-12?17:42??USB讀卡器\common\softirq.h

?????文件????????550??2012-03-08?21:12??USB讀卡器\common\SysDelay.c

?????文件????????157??2012-03-08?21:08??USB讀卡器\common\SysDelay.h

?????文件??????18018??2012-03-16?22:25??USB讀卡器\common\tools.c

?????文件???????3675??2012-02-10?14:14??USB讀卡器\common\Tools.h

?????文件??????27985??2012-03-16?22:25??USB讀卡器\drv\bsp.c

?????文件???????2418??2012-03-16?22:25??USB讀卡器\drv\bsp.h

?????文件??????22246??2012-03-08?14:48??USB讀卡器\drv\spi_flash.c

?????文件???????3850??2012-03-08?14:47??USB讀卡器\drv\spi_flash.h

?????文件???????1669??2012-03-08?10:44??USB讀卡器\drv\Timer.c

?????文件????????386??2012-03-08?10:44??USB讀卡器\drv\timer.h

............此處省略493個文件信息

評論

共有 條評論