diff --git a/avrrfm.c b/avrrfm.c index 2080971..93c5093 100644 --- a/avrrfm.c +++ b/avrrfm.c @@ -308,7 +308,7 @@ */ static void transmitData(void) { uint8_t block[SD_BLOCK_SIZE]; - bool read = readSingleBlock(0, block); + bool read = sdcReadSingleBlock(0, block); if (read) { void *start = █ div_t packets = div(SD_BLOCK_SIZE, MESSAGE_SIZE); @@ -338,7 +338,7 @@ // used only for tx initWatchdog(); initTimer(); - sdcard = initSDCard(); + sdcard = sdcInit(); } // enable global interrupts diff --git a/libsdc.a b/libsdc.a index f25eea0..4be8a3a 100644 --- a/libsdc.a +++ b/libsdc.a Binary files differ diff --git a/libsdc.h b/libsdc.h index b277fa2..acb45f6 100644 --- a/libsdc.h +++ b/libsdc.h @@ -5,8 +5,8 @@ * Created on 25.03.2025, 20:29 */ -#ifndef SDCARD_H -#define SDCARD_H +#ifndef LIBSDC_H +#define LIBSDC_H #include #include @@ -95,7 +95,7 @@ * * @return true on success, false otherwise */ -bool initSDCard(void); +bool sdcInit(void); /** * Reads a single block of 512 bytes at the given address into @@ -105,7 +105,7 @@ * @param block 512 byte buffer * @return success */ -bool readSingleBlock(uint32_t address, uint8_t *block); +bool sdcReadSingleBlock(uint32_t address, uint8_t *block); /** * Reads multiple blocks of 512 bytes starting at the given address @@ -116,7 +116,7 @@ * @param consume * @return success */ -bool readMultiBlock(uint32_t address, SDConsumer consume); +bool sdcReadMultiBlock(uint32_t address, SDConsumer consume); /** * Writes a single block of 512 bytes starting at the given address @@ -126,6 +126,6 @@ * @param block 512 byte buffer * @return success */ -bool writeSingleBlock(uint32_t address, uint8_t *block); +bool sdcWriteSingleBlock(uint32_t address, uint8_t *block); -#endif /* SDCARD_H */ +#endif /* LIBSDC_H */