Image
Image

yellow555

+ 关注

粉丝 3     |     主题 40     |     回帖 469

STM32f105写U盘
2023-12-20 09:41
  • ST MCU
  • 67
  • 1801
  #define _FS_REENTRANT 0 #define _FS_TIMEOUT 1000 #define _SYNC_t HANDLE /* T ...  
  #define _FS_LOCK 0 /* The option _FS_LOCK switches file lock function to control duplicated fi ...  
  #define _FS_NORTC 0 #define _NORTC_MON 3 #define _NORTC_MDAY 1 #define _NORTC_YEAR 2016 ...  
  #define _FS_TINY 0 /* This option switches tiny buffer configuration. (0:Normal or 1:Tiny) / ...  
  #define _FS_NOFSINFO 0 /* If you need to know correct free space on the FAT32 volume, set bit 0 o ...  
  #define _MIN_SS 512 #define _MAX_SS 512 /* These options configure the range of ...  
  #define _STR_VOLUME_ID 0 #define _VOLUME_STRS "RAM","NAND","CF","SD1","SD2","USB1","USB2","USB ...  
  #define _FS_RPATH 0 /* This option configures support of relative path. / / 0: Disable relative ...  
  #define _LFN_UNICODE 0 /* This option switches character encoding on the API. (0:ANSI/OEM or 1 ...  
  #define _USE_LFN 1 #define _MAX_LFN 255 /* The _USE_LFN switches the support of long fil ...  
  #define _CODE_PAGE 437 /* This option specifies the OEM code page to be used on the target sy ...  
  最后我的ffconf配置 /*---------------------------------------------------------------------------/ / ...  
  { DRESULT res; if(pdrv==USB_DISK) //U盘 { ...  
  { u8 res=0; if (!count)return RES_PARERR;//count不能等于0,否则返回参数错误 ...  
  //获得磁盘状态 DSTATUS disk_status ( BYTE pdrv /* Physical drive nmuber to identify the d ...  
  /** * @} */ /** * @} */ /************************ (C) COPYRIGHT STMicroelectronics ***** ...  
  /** * @} */ /** @defgroup USB_CONF_Exported_Types * @{ */ /** * @} */ /** @de ...  
  /****************** C Compilers dependant keywords ****************************/ /* In HS mode and w ...  
  /****************** USB OTG FS CONFIGURATION 我用的USB HOST模式 **********************************/ ...  
  /****************** USB OTG HS CONFIGURATION不使用 **********************************/ #ifdef USB_OT ...  
2
3
近期访客