Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
71d491cdbThis file is pinned to the selected release. Download the original to open it in your design tool.
/*****************************************************************************
Sd.cpp
Copyright (c) 2020 Raphael DINGE
*Tab=3***********************************************************************/
/*\\\ INCLUDE FILES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
#include "erb/Sd.h"
#if defined (erb_TARGET_DAISY)
#include "sys/fatfs.h"
#endif
namespace erb
{
/*\\\ PUBLIC \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
/*
==============================================================================
Name : mount
Description :
Return 'true' iff mounting the SD card succeeded.
==============================================================================
*/
bool Sd::mount ()
{
#if defined (erb_TARGET_DAISY)
auto err = f_mount (&SDFatFS, SDPath, 1);
if (err == FR_OK) return true;
if (err == FR_NOT_READY) return true;
return false; // failed
#elif defined (erb_TARGET_VCV_RACK)
// check that the directory exists
#endif
}
/*
==============================================================================
Name : mount
Description :
Return 'true' iff mounting the SD card succeeded.
==============================================================================
*/
void Sd::unmount ()
{
}
/*\\\ INTERNAL \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
/*\\\ PROTECTED \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
/*\\\ PRIVATE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
} // namespace erb
/*\\\ EOF \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/