mirror of
https://github.com/im-tomu/foboot.git
synced 2024-09-20 02:40:09 +00:00
fb08d194ca
Remove code that doesn't get called. Also, remove the `spi_id` global. It conflicted with one from the linker, which was causing contention. Signed-off-by: Sean Cross <sean@xobs.io>
20 lines
491 B
C
20 lines
491 B
C
#ifndef _FOBOOST_SPI_H
|
|
#define _FOBOOST_SPI_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define SPI_ERASE_SECTOR_SIZE 4096
|
|
#define SPI_PROGRAM_PAGE_SIZE 256
|
|
|
|
uint8_t spiCommandRx(void);
|
|
uint8_t spiReadStatus(void);
|
|
void spiBeginErase4(uint32_t erase_addr);
|
|
void spiBeginErase32(uint32_t erase_addr);
|
|
void spiBeginErase64(uint32_t erase_addr);
|
|
int spiIsBusy(void);
|
|
void spiBeginWrite(uint32_t addr, const void *v_data, unsigned int count);
|
|
uint32_t spiId(void);
|
|
void spiReset(void);
|
|
|
|
#endif /* _FOBOOST_SPI_H */
|