46 cfs_coffee_arch_erase(
unsigned sector)
48 char buf[SD_DEFAULT_BLOCK_SIZE];
49 sd_offset_t start_offset;
50 sd_offset_t end_offset;
53 memset(buf, 0,
sizeof(buf));
55 start_offset = COFFEE_START + sector * COFFEE_SECTOR_SIZE;
56 end_offset = start_offset + COFFEE_SECTOR_SIZE;
58 for(offset = start_offset; offset < end_offset; offset += SD_DEFAULT_BLOCK_SIZE) {
59 if(sd_write(offset, buf,
sizeof(buf)) < 0) {