add h7 support to spi ll driver, drop hal version
[inav.git] / src / main / msc / usbd_storage.h
blob3fb51e3e221909d09b1bc1fad56c3a448ca0c179
1 /*
2 * This file is part of Cleanflight.
4 * Cleanflight is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * Cleanflight is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
18 * Author: Chris Hockuba (https://github.com/conkerkh)
21 #pragma once
23 #ifdef USE_HAL_DRIVER
24 #include "usbd_msc.h"
25 #else
26 #include "usbd_msc_mem.h"
27 #include "usbd_msc_core.h"
28 #endif
30 #ifdef USE_HAL_DRIVER
31 extern USBD_StorageTypeDef *USBD_STORAGE_fops;
32 #ifdef USE_SDCARD
33 extern USBD_StorageTypeDef USBD_MSC_MICRO_SDIO_fops;
34 #endif
35 #ifdef USE_FLASHFS
36 extern USBD_StorageTypeDef USBD_MSC_EMFAT_fops;
37 #endif
38 #else
39 extern USBD_STORAGE_cb_TypeDef *USBD_STORAGE_fops;
40 #ifdef USE_SDCARD
41 extern USBD_STORAGE_cb_TypeDef USBD_MSC_MICRO_SDIO_fops;
42 #endif
43 #ifdef USE_FLASHFS
44 extern USBD_STORAGE_cb_TypeDef USBD_MSC_EMFAT_fops;
45 #endif
46 #endif