aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/os/various/fatfs_bindings/fatfs_devices.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/os/various/fatfs_bindings/fatfs_devices.h')
-rw-r--r--lib/chibios-contrib/os/various/fatfs_bindings/fatfs_devices.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/lib/chibios-contrib/os/various/fatfs_bindings/fatfs_devices.h b/lib/chibios-contrib/os/various/fatfs_bindings/fatfs_devices.h
new file mode 100644
index 000000000..cd1ad2f0f
--- /dev/null
+++ b/lib/chibios-contrib/os/various/fatfs_bindings/fatfs_devices.h
@@ -0,0 +1,41 @@
1/*
2 ChibiOS - Copyright (C) 2006..2017 Giovanni Di Sirio
3 Copyright (C) 2015..2019 Diego Ismirlian, (dismirlian(at)google's mail)
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16*/
17
18#ifndef FATFS_DEVICES_H_
19#define FATFS_DEVICES_H_
20
21#include "hal.h"
22
23/*-----------------------------------------------------------------------*/
24/* Correspondence between physical drive number and physical drive. */
25#if HAL_USE_MMC_SPI || HAL_USE_SDC
26#define FATFSDEV_MMC 0
27#define FATFSDEV_MMC_DRIVE "0:"
28#endif
29
30
31#if HAL_USBH_USE_MSD
32#if defined(FATFSDEV_MMC)
33#define FATFSDEV_MSD 1
34#define FATFSDEV_MSD_DRIVE "1:"
35#else
36#define FATFSDEV_MSD 0
37#define FATFSDEV_MSD_DRIVE "0:"
38#endif
39#endif
40
41#endif /* FATFS_DEVICES_H_ */