@@ -235,7 +235,7 @@ enum BoardTypes detectBoardType()
235
235
#endif
236
236
} // End of detectBoardType()
237
237
238
- void deleteDevice (const enum DeviceNames deviceName, struct DeviceFileSystemCombination * const deviceFileSystemCombination)
238
+ void deleteDevice (const enum StorageDevices deviceName, struct DeviceFileSystemCombination * const deviceFileSystemCombination)
239
239
{
240
240
// The USBHostMSD class for the H7 doesn't correctly support object destruction, so we only delete
241
241
// the device object on other platforms or if the device is an SD Card -->
@@ -258,7 +258,7 @@ void deleteDevice(const enum DeviceNames deviceName, struct DeviceFileSystemComb
258
258
} // End of deleteDevice()
259
259
260
260
// WARNING: Don't set errno and return -1 in this function - just return 0 for success or the errno code!
261
- int mountOrFormatFileSystemOnDevice (const enum DeviceNames deviceName,
261
+ int mountOrFormatFileSystemOnDevice (const enum StorageDevices deviceName,
262
262
struct DeviceFileSystemCombination * const deviceFileSystemCombination,
263
263
const enum FileSystems fileSystem,
264
264
const char * const mountPoint,
@@ -476,7 +476,7 @@ int mountOrFormatUSBDevice(const enum FileSystems fileSystem,
476
476
} // End of mountOrFormatUSB()
477
477
478
478
// WARNING: Don't set errno and return -1 in this function - just return 0 for success or the errno code!
479
- int mountOrFormat (const enum DeviceNames deviceName,
479
+ int mountOrFormat (const enum StorageDevices deviceName,
480
480
const enum FileSystems fileSystem,
481
481
const enum ActionTypes mountOrFormat)
482
482
{
@@ -509,7 +509,7 @@ int mountOrFormat(const enum DeviceNames deviceName,
509
509
*********************************************************************************************************
510
510
*/
511
511
512
- int mount (const enum DeviceNames deviceName,
512
+ int mount (const enum StorageDevices deviceName,
513
513
const enum FileSystems fileSystem,
514
514
const enum MountFlags mountFlags)
515
515
{
@@ -528,7 +528,7 @@ int mount(const enum DeviceNames deviceName,
528
528
return 0 ;
529
529
} // End of mount()
530
530
531
- int mkfs (const enum DeviceNames deviceName, const enum FileSystems fileSystem)
531
+ int mkfs (const enum StorageDevices deviceName, const enum FileSystems fileSystem)
532
532
{
533
533
const int mountOrFormatReturn = mountOrFormat (deviceName, fileSystem, ACTION_FORMAT);
534
534
if (0 != mountOrFormatReturn)
@@ -539,7 +539,7 @@ int mkfs(const enum DeviceNames deviceName, const enum FileSystems fileSystem)
539
539
return 0 ;
540
540
} // End of mkfs()
541
541
542
- int umount (const enum DeviceNames deviceName)
542
+ int umount (const enum StorageDevices deviceName)
543
543
{
544
544
struct DeviceFileSystemCombination *deviceFileSystemCombination = nullptr ;
545
545
@@ -579,7 +579,7 @@ int umount(const enum DeviceNames deviceName)
579
579
}
580
580
} // End of umount()
581
581
582
- int register_hotplug_callback (const enum DeviceNames deviceName, void (* const callbackFunction)())
582
+ int register_hotplug_callback (const enum StorageDevices deviceName, void (* const callbackFunction)())
583
583
{
584
584
if (true == hotplugCallbackAlreadyRegistered)
585
585
{
@@ -641,7 +641,7 @@ int register_hotplug_callback(const enum DeviceNames deviceName, void (* const c
641
641
} // End of hotplug_register_callback()
642
642
643
643
// Not supported by the layer below on these platforms, but might be on other platforms
644
- int deregister_hotplug_callback (const enum DeviceNames deviceName)
644
+ int deregister_hotplug_callback (const enum StorageDevices deviceName)
645
645
{
646
646
(void ) deviceName; // Remove when implemented, only here to silence -Wunused-parameter
647
647
errno = ENOSYS;
0 commit comments