Skip to content

Commit

Permalink
Third-party: LWIP & rBoot updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
slav-at-attachix committed Feb 16, 2017
1 parent 288cf15 commit b0568b5
Show file tree
Hide file tree
Showing 32 changed files with 24 additions and 19 deletions.
Binary file removed Sming/third-party/esp-open-lwip/espconn_dummy.o
Binary file not shown.
19 changes: 0 additions & 19 deletions Sming/third-party/esp-open-lwip/include/user_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,6 @@ void ets_task(ETSTask task, uint32_t prio, ETSEvent * queue, uint8 qlen);

void system_pp_recycle_rx_pkt(void *eb);

#ifndef MEMLEAK_DEBUG
extern void *pvPortMalloc( size_t xWantedSize );
extern void vPortFree( void *pv );
extern void *pvPortZalloc(size_t size);
#else
extern void *pvPortMalloc(size_t xWantedSize, const char *file, uint32 line);
extern void *pvPortZalloc(size_t xWantedSize, const char *file, uint32 line);
extern void vPortFree(void *ptr, const char *file, uint32 line);

extern void pvPortFree(void *ptr);
extern void *vPortMalloc(size_t xWantedSize);
#endif /*MEMLEAK_DEBUG*/


extern void *pvPortCalloc(unsigned int n, unsigned int count);
extern void *pvPortRealloc(void * p, size_t size);
extern size_t xPortGetFreeHeapSize(void);
// extern void prvHeapInit(void) ICACHE_FLASH_ATTR ;

#ifdef __cplusplus
}
#endif
Expand Down
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/def.o
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/dhcp.o
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/dns.o
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/init.o
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/ipv4/autoip.o
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/ipv4/inet.o
Binary file not shown.
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/ipv4/ip.o
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/mem.o
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/memp.o
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/netif.o
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/pbuf.o
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/raw.o
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/sntp.o
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/stats.o
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/sys.o
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/sys_arch.o
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/tcp.o
Binary file not shown.
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/tcp_out.o
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/timers.o
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/core/udp.o
Binary file not shown.
Binary file removed Sming/third-party/esp-open-lwip/lwip/netif/etharp.o
Binary file not shown.
6 changes: 6 additions & 0 deletions Sming/third-party/rboot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ endif
ifeq ($(RBOOT_IROM_CHKSUM),1)
CFLAGS += -DBOOT_IROM_CHKSUM
endif
ifneq ($(RBOOT_ROM1_ADDR),)
CFLAGS += -DBOOT_ROM1_ADDR=$(RBOOT_ROM1_ADDR)
endif
ifneq ($(RBOOT_ROM2_ADDR),)
CFLAGS += -DBOOT_ROM2_ADDR=$(RBOOT_ROM2_ADDR)
endif
ifneq ($(RBOOT_EXTRA_INCDIR),)
CFLAGS += $(addprefix -I,$(RBOOT_EXTRA_INCDIR))
endif
Expand Down
18 changes: 18 additions & 0 deletions Sming/third-party/rboot/rboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,25 @@ static uint8 calc_chksum(uint8 *start, uint8 *end) {
static uint8 default_config(rboot_config *romconf, uint32 flashsize) {
romconf->count = 2;
romconf->roms[0] = SECTOR_SIZE * (BOOT_CONFIG_SECTOR + 1);

#ifdef BOOT_ROM1_ADDR
romconf->roms[1] = BOOT_ROM1_ADDR;
#else
romconf->roms[1] = (flashsize / 2) + (SECTOR_SIZE * (BOOT_CONFIG_SECTOR + 1));
#endif

#if defined(BOOT_BIG_FLASH) && defined(BOOT_GPIO_ENABLED)
if(flashsize > 0x200000) {
romconf->count += 1;
#ifdef BOOT_ROM2_ADDR
romconf->roms[2] = BOOT_ROM2_ADDR;
#else
romconf->roms[2] = 0x310000;
#endif
romconf->gpio_rom = 2;
}
#endif

#ifdef BOOT_GPIO_ENABLED
romconf->mode = MODE_GPIO_ROM;
#endif
Expand Down

0 comments on commit b0568b5

Please sign in to comment.