nim_config.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * nim_config.h
  3. *
  4. * Created on: 2025年7月18日
  5. * Author: wulianwei
  6. */
  7. #ifndef NIM_CONFIG_H_
  8. #define NIM_CONFIG_H_
  9. #include <device/touch.h>
  10. #include <string.h>
  11. #include <stdio.h>
  12. #include "hw_types.h"
  13. #include "soc_C6748.h"
  14. #include "hw_syscfg0_C6748.h"
  15. #include "soc_C6748.h"
  16. #include "psc.h"
  17. #include "gpio.h"
  18. #include "interrupt.h"
  19. #include "hal/nim_gpio.h"
  20. #include "hal/nim_uart.h"
  21. #include "hal/nim_ethernet.h"
  22. #include "util/sys_util.h"
  23. #include "device/console.h"
  24. #include "device/lwip.h"
  25. #include "device/touch.h"
  26. #include "algorithm/emg_util.h"
  27. #include "business/handle_bus.h"
  28. #define SYSCLK_1_FREQ (456000000)
  29. #define SYSCLK_2_FREQ (SYSCLK_1_FREQ/2)
  30. #define UART_CONSOLE_BASE (SOC_UART_2_REGS) //日志打印串口
  31. #define TCP_SERVER_PORT 2000
  32. #define STATIC_IP_ADDRESS 0xC0A80A02 //192.168.10.2
  33. #define STATIC_NET_MASK 0xFFFFFF00 //255.255.255.0
  34. #define UI_IP_ADDRESS 0xC0A80A89 //192.168.10.137
  35. #define UI_UDP_PORT 8000
  36. #define TOUCH_TIME 2000 //触控时间 3s
  37. #define WATCH_TIME 10000 //看门时间 10s
  38. #endif /* NIM_CONFIG_H_ */