#include "nim_config.h" #include "lwiplib.h" #include "lwipopts.h" #include "hlx.h" #include "tr_timer.h" #define LEN_IP_ADDR (4u) #define ASCII_NUM_IDX (48u) extern int flag ; void DeviceInit(); int main() { printf("======DSP START======\n"); DeviceInit(); for (;;) { InitWatchTime(); touch_task(); HlxMain(); } } /** * @title 全局中断 */ void InterruptInit(void) { // 初始化 DSP 中断控制器 IntDSPINTCInit(); // 使能 DSP 全局中断 IntGlobalEnable(); } void PSCIni() { PSCModuleControl(SOC_PSC_1_REGS, HW_PSC_GPIO, PSC_POWERDOMAIN_ALWAYS_ON, PSC_MDCTL_NEXT_ENABLE); } /** * 设备初始化 */ void DeviceInit() { InterruptInit(); PSCIni(); ConsoleDeviceInit();//控制台初始化 ConsolePuts("\r\n ============NIM DSP START===========.\r\n", -1); touch_deivce_init(); lwip_device_init(); //以太网模块初始化 HlxInit(); }