Enable NCM + iperf for MCU with bigger RAM.

This commit is contained in:
HiFiPhile
2024-05-07 00:23:50 +02:00
parent 63d5103f42
commit 0f4ea8e918
4 changed files with 23 additions and 1 deletions

View File

@@ -53,6 +53,10 @@ try changing the first byte of tud_network_mac_address[] below from 0x02 to 0x00
#include "lwip/init.h"
#include "lwip/timeouts.h"
#ifdef INCLUDE_IPERF
#include "lwip/apps/lwiperf.h"
#endif
#define INIT_IP4(a, b, c, d) \
{ PP_HTONL(LWIP_MAKEU32(a, b, c, d)) }
@@ -225,6 +229,10 @@ int main(void) {
while (dnserv_init(IP_ADDR_ANY, 53, dns_query_proc) != ERR_OK);
httpd_init();
#ifdef INCLUDE_IPERF
// test with: iperf -c 192.168.7.1 -e -i 1 -M 5000 -l 8192 -r
lwiperf_start_tcp_server_default(NULL, NULL);
#endif
while (1) {
tud_task();