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.
38 lines
1.4 KiB
38 lines
1.4 KiB
/**
|
|
****************************************************************************************************
|
|
* @file main.c
|
|
* @author 正点原子团队(ALIENTEK)
|
|
* @version V1.0
|
|
* @date 2022-5-04
|
|
* @brief lwIP SOCKET UDP广播 实验
|
|
* @license Copyright (c) 2020-2032, 广州市星翼电子科技有限公司
|
|
****************************************************************************************************
|
|
* @attention
|
|
*
|
|
* 实验平台:正点原子 探索者 F407开发板
|
|
* 在线视频:www.yuanzige.com
|
|
* 技术论坛:www.openedv.com
|
|
* 公司网址:www.alientek.com
|
|
* 购买地址:openedv.taobao.com
|
|
*
|
|
****************************************************************************************************
|
|
*/
|
|
|
|
#include "./BSP/KEY/key.h"
|
|
#include "./BSP/LED/led.h"
|
|
#include "./SYSTEM/delay/delay.h"
|
|
#include "./SYSTEM/sys/sys.h"
|
|
#include "./SYSTEM/usart/usart.h"
|
|
#include "freertos_demo.h"
|
|
|
|
int main(void) {
|
|
HAL_Init(); /* 初始化HAL库 */
|
|
__HAL_RCC_GPIOD_CLK_ENABLE(); /* 不初始化会导致dhcp获取不到ip */
|
|
sys_stm32_clock_init(336, 8, 2, 7); /* 设置时钟,168Mhz */
|
|
delay_init(168); /* 延时初始化 */
|
|
usart_init(115200); /* 串口初始化为115200 */
|
|
led_init(); /* 初始化LED */
|
|
key_init(); /* 初始化按键 */
|
|
|
|
freertos_demo(); /* 创建lwIP的任务函数 */
|
|
}
|