#include "nim_config.h" #include "lwiplib.h" #include "lwipopts.h" #include "hlx.h" #define LEN_IP_ADDR (4u) #define ASCII_NUM_IDX (48u) void DeviceInit(); char* dd; int main() { DeviceInit(); ConsolePuts("\r\n ============NIM DSP START===========.\r\n", -1); lwip_tcp_init(TCP_SERVER_PORT); //开启本设备TCP服务器 // 主循环 float t = 0; #define ALGORITHM_SIZE 1000 for (;;) { if(t>2){ t=0; } t += 0.1; // 发送数据 float ch1[ALGORITHM_SIZE]; float ch2[ALGORITHM_SIZE]; int i=0; for(i = 0;i