Instructions
336Libraries
© 2013 Conrad Electronic
Return Parameter
Success of the called SDC function. See SDC Return Values.
5.21.16 SDC_Unlink
SDCard Functions
Syntax
byte SDC_Unlink(char path[]);
Sub SDC_Unlink(ByRef path As Char) As Byte
Description
Deletes a file.
Parameter
path file path
Return Parameter
Success of the called SDC function. See SDC Return Values.
5.21.17 SD card Example
// Global variables
byte fat[562];
byte fil[32];
void main(void)
{
// Local variables
byte res;
char buf[100];
word bytes_written[1];
// SD-Card reset
Port_DataDirBit(13,1); // PB.5 = output (EN1)
Port_DataDirBit(14,1); // PB.6 = Ausgang (EN2)
Port_WriteBit(13,1); // set EN1 for 50ms at +5V (PB.5)
Port_WriteBit(14,0); // set EN2 for 50ms to GND (PB.6)
AbsDelay(50); // 50ms break
Port_WriteBit(13,0); // EN1 GND
Port_WriteBit(14,1); // EN2 +5V