ESP8684: Add esp8684 target to other repo for passing build

This commit is contained in:
Cao Sen Miao
2021-11-06 17:31:05 +08:00
parent 9ab043574d
commit 599227a1b6
14 changed files with 171 additions and 47 deletions

View File

@@ -170,11 +170,12 @@ lwip_hook_tcp_isn(const ip_addr_t *local_ip, u16_t local_port,
assert(!esp_ptr_external_ram(esp_cpu_get_sp()));
#endif
struct MD5Context ctx;
md5_context_t ctx;
esp_rom_md5_init(&ctx);
esp_rom_md5_update(&ctx, input, sizeof(input));
esp_rom_md5_final(output, &ctx);
/* Arbitrarily take the first 32 bits from the generated hash. */
MEMCPY(&isn, output, sizeof(isn));