You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.9 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. /**
  2. ****************************************************************************************************
  3. * @file main.c
  4. * @author (ALIENTEK)
  5. * @version V1.0
  6. * @date 2022-5-04
  7. * @brief lwIP SOCKET UDP广播
  8. * @license Copyright (c) 2020-2032, 广
  9. ****************************************************************************************************
  10. * @attention
  11. *
  12. * : F407开发板
  13. * 线:www.yuanzige.com
  14. * :www.openedv.com
  15. * :www.alientek.com
  16. * :openedv.taobao.com
  17. *
  18. ****************************************************************************************************
  19. */
  20. #include "./SYSTEM/sys/sys.h"
  21. #include "./SYSTEM/usart/usart.h"
  22. #include "./SYSTEM/delay/delay.h"
  23. #include "./BSP/LED/led.h"
  24. #include "./BSP/LCD/lcd.h"
  25. #include "./USMART/usmart.h"
  26. #include "./BSP/KEY/key.h"
  27. // #include "./BSP/SRAM/sram.h"
  28. // #include "./MALLOC/malloc.h"
  29. #include "freertos_demo.h"
  30. int main(void)
  31. {
  32. HAL_Init(); /* 初始化HAL库 */
  33. sys_stm32_clock_init(336, 8, 2, 7); /* 设置时钟,168Mhz */
  34. delay_init(168); /* 延时初始化 */
  35. usart_init(115200); /* 串口初始化为115200 */
  36. usmart_dev.init(84); /* 初始化USMART */
  37. led_init(); /* 初始化LED */
  38. lcd_init(); /* 初始化LCD */
  39. key_init(); /* 初始化按键 */
  40. // sram_init(); /* SRAM初始化 */
  41. // my_mem_init(SRAMIN); /* 初始化内部SRAM内存池 */
  42. // my_mem_init(SRAMEX); /* 初始化外部SRAM内存池 */
  43. // my_mem_init(SRAMCCM); /* 初始化内部CCM内存池 */
  44. freertos_demo(); /* 创建lwIP的任务函数 */
  45. }