Skip to content

Commit ac58291

Browse files
committed
Format
1 parent f384877 commit ac58291

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

stm32h7/littlefs_sd_shim.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
static SD_HandleTypeDef *lfsshim_sd_hsd;
99
static uint32_t lfsshim_sd_first_block_offset = 0;
1010

11-
static int lfsshim_sd_read(const struct lfs_config *c, lfs_block_t block, lfs_off_t off, void *buffer,
12-
lfs_size_t size) {
11+
static int lfsshim_sd_read(const struct lfs_config *c, lfs_block_t block, lfs_off_t off,
12+
void *buffer, lfs_size_t size) {
1313
uint32_t block_addr = block + lfsshim_sd_first_block_offset;
1414

1515
w_assert((size % c->block_size) == 0);
1616
w_assert(off == 0);
1717

1818
uint32_t num_blocks = size / c->block_size;
1919

20-
HAL_StatusTypeDef hal =
21-
HAL_SD_ReadBlocks(lfsshim_sd_hsd, (uint8_t *)buffer, block_addr, num_blocks, SD_RW_TIMEOUT_MS);
20+
HAL_StatusTypeDef hal = HAL_SD_ReadBlocks(
21+
lfsshim_sd_hsd, (uint8_t *)buffer, block_addr, num_blocks, SD_RW_TIMEOUT_MS);
2222
if (hal != HAL_OK) {
2323
return -1; // LFS_ERR_IO
2424
}
@@ -35,7 +35,7 @@ static int lfsshim_sd_read(const struct lfs_config *c, lfs_block_t block, lfs_of
3535
}
3636

3737
static int lfsshim_sd_write(const struct lfs_config *c, lfs_block_t block, lfs_off_t off,
38-
const void *buffer, lfs_size_t size) {
38+
const void *buffer, lfs_size_t size) {
3939
uint32_t block_addr = block + lfsshim_sd_first_block_offset;
4040

4141
w_assert((size % c->block_size) == 0);

0 commit comments

Comments
 (0)