mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
clean unused defines and typos
This commit is contained in:
parent
742d47b80a
commit
fe601d21ab
@ -159,6 +159,6 @@ uint32_t flashmem_read( void *to, uint32_t fromaddr, uint32_t size ){
|
|||||||
|
|
||||||
//shorthand when start and end addresses of the sector are not needed
|
//shorthand when start and end addresses of the sector are not needed
|
||||||
uint32_t flashmem_get_sector_of_address( uint32_t addr ){
|
uint32_t flashmem_get_sector_of_address( uint32_t addr ){
|
||||||
return (addr - INTERNAL_FLASH_START_ADDRESS) / INTERNAL_FLASH_SECTOR_SIZE;;
|
return (addr - INTERNAL_FLASH_START_ADDRESS) / INTERNAL_FLASH_SECTOR_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@ The small 4KB sectors allow for greater flexibility in applications that require
|
|||||||
#define SPIFFS_API_DBG_V(fmt, ...) //os_printf(fmt, ##__VA_ARGS__)
|
#define SPIFFS_API_DBG_V(fmt, ...) //os_printf(fmt, ##__VA_ARGS__)
|
||||||
#define SPIFFS_API_DBG_E(fmt, ...) //os_printf("ERROR: " fmt , ##__VA_ARGS__)
|
#define SPIFFS_API_DBG_E(fmt, ...) //os_printf("ERROR: " fmt , ##__VA_ARGS__)
|
||||||
|
|
||||||
#define INTERNAL_FLASH_PAGE_SIZE 256
|
|
||||||
#define INTERNAL_FLASH_SECTOR_SIZE 4096
|
#define INTERNAL_FLASH_SECTOR_SIZE 4096
|
||||||
#define INTERNAL_FLASH_START_ADDRESS 0x40200000
|
#define INTERNAL_FLASH_START_ADDRESS 0x40200000
|
||||||
|
|
||||||
@ -34,7 +33,6 @@ The small 4KB sectors allow for greater flexibility in applications that require
|
|||||||
extern uint32_t flashmem_write( const void *from, uint32_t toaddr, uint32_t size );
|
extern uint32_t flashmem_write( const void *from, uint32_t toaddr, uint32_t size );
|
||||||
extern uint32_t flashmem_read( void *to, uint32_t fromaddr, uint32_t size );
|
extern uint32_t flashmem_read( void *to, uint32_t fromaddr, uint32_t size );
|
||||||
extern bool flashmem_erase_sector( uint32_t sector_id );
|
extern bool flashmem_erase_sector( uint32_t sector_id );
|
||||||
uint32_t flashmem_find_sector( uint32_t address, uint32_t *pstart, uint32_t *pend );
|
|
||||||
uint32_t flashmem_get_sector_of_address( uint32_t addr );
|
uint32_t flashmem_get_sector_of_address( uint32_t addr );
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
x
Reference in New Issue
Block a user