diff options
| author | Damien George | 2014-03-30 12:30:35 +0100 |
|---|---|---|
| committer | Damien George | 2014-03-30 12:30:35 +0100 |
| commit | 09d207785c77c85c957471b064ceebe0d2ee0a23 (patch) | |
| tree | 6c34e11ee61c820c807db06d3d3cd69611c13ddb /stmhal/usbd_msc_storage.c | |
| parent | 24a140a444cfb2ebda7f0b6d0a88be9461a99d03 (diff) | |
stmhal: Unify naming of HW config; make SD detect configurable.
All board config macros now begin with MICROPY_HW_.
Renamed PYBv10 to PYBV10, since macros should be all uppercase.
Made SDCARD_DETECT configurable in mpconfigport.h, so that the SD
detect pin can be easily configured.
Diffstat (limited to 'stmhal/usbd_msc_storage.c')
| -rw-r--r-- | stmhal/usbd_msc_storage.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/stmhal/usbd_msc_storage.c b/stmhal/usbd_msc_storage.c index 1b4545cd3..f3ecd023d 100644 --- a/stmhal/usbd_msc_storage.c +++ b/stmhal/usbd_msc_storage.c @@ -27,7 +27,7 @@ ****************************************************************************** */ -#include "usbd_cdc_msc.h" +#include "usbd_cdc_msc_hid.h" #include "usbd_msc_storage.h" #include "misc.h" @@ -159,6 +159,8 @@ const USBD_StorageTypeDef USBD_FLASH_STORAGE_fops = { /******************************************************************************/ // Callback functions for when the SD card is the mass storage device +#if MICROPY_HW_HAS_SDCARD + static const int8_t SDCARD_STORAGE_Inquirydata[] = { // 36 bytes // LUN 0 0x00, @@ -318,3 +320,5 @@ const USBD_StorageTypeDef USBD_SDCARD_STORAGE_fops = { SDCARD_STORAGE_GetMaxLun, (int8_t *)SDCARD_STORAGE_Inquirydata, }; + +#endif // MICROPY_HW_HAS_SDCARD |
