ifndef HAL_USE_USB_MSD compilation fix

This commit is contained in:
Andrei 2017-05-24 18:12:09 +03:00
parent 66218663fd
commit b31281fadc
2 changed files with 5 additions and 1 deletions

View File

@ -19,6 +19,8 @@
#include "hal_usb_msd.h"
#include "usb_msd_cfg.h"
#if HAL_USE_USB_MSD
/*
* must be 64 for full speed and 512 for high speed
*/
@ -228,3 +230,4 @@ const USBConfig msdusbcfg = {
NULL
};
#endif /* HAL_USE_USB_MSD */

View File

@ -54,10 +54,11 @@ EXTERN_ENGINE;
extern board_configuration_s *boardConfiguration;
#if HAL_USE_USB_MSD
//static USBDriver *ms_usb_driver = &USBD1;
//static USBMassStorageDriver UMSD1;
extern const USBConfig msdusbcfg;
#endif /* HAL_USE_USB_MSD */
#define PUSHPULLDELAY 500