Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
eduazocar committed Oct 12, 2022
1 parent 61b6665 commit bf95c2d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions firmware/sys/storage/storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@
static mtd_flashpage_t _dev = MTD_FLASHPAGE_INIT_VAL(8);
static mtd_dev_t *dev = &_dev.base;

#define MTD_WR_BLOCK_POS(offset) ((offset - MTD_START_ADDR) / dev->write_size)
#define MTD_WR_NUMOF_BLOCK(size, offset) ((size) + (offset)) / (dev->write_size)
#define MTD_LAST_BLOCK_RES(size, offset) (offset) + (size) % (dev->write_size)

int8_t mtd_start(void) {
int ret = mtd_init(dev);
if (ret < 0) {
Expand Down

0 comments on commit bf95c2d

Please sign in to comment.