C8051USB
代码说明:
这是一个基于C8051F340的SD读卡器 #include "F34x_MSD_Physical_Settings.h" #include "F34x_MSD_CF_Basic_Functions.h" #include sbit Led1 = P2^2; sbit Led2 = P2^3; void CF_Port_Init(); //---------------------------------------------------------------------------- // Init_CF //---------------------------------------------------------------------------- // // This routine initializes the Compact Flash memory card // // Parameters : // Return Value : //---------------------------------------------------------------------------- char Init_CF() { xdata char result = Dtct_Card(); xdata unsigned int loop = 0; xdata unsigned reinit = 0; if (result == 1) return (CF_NO_CARD); REINIT: CF_RST = 1; while(++loop);
下载说明:请别用迅雷下载,失败请重下,重下不扣分!