/**
@brief Initialize the HTTP server (start its thread)
@param none
@retval None / void http_server_netconn_init() { sys_thread_new("HTTP", http_server_netconn_thread, NULL, DEFAULT_THREAD_STACKSIZE 4, osPriorityAboveNormal); }
/////////////////////////////////////////
/ USER CODE BEGIN Header_StartDefaultTask / /**
@brief Function implementing the defaultTask thread.
@param argument: Not used
@retval None / / USER CODE END Header_StartDefaultTask / void StartDefaultTask(void const argument) { / init code for LWIP / MX_LWIP_Init(); / USER CODE BEGIN StartDefaultTask / / Initialize webserver demo / http_server_netconn_init(); / Infinite loop / for(;;) { //vTaskDelete(NULL); HAL_GPIO_WritePin(LED_2_GPIO_Port,LED_2_Pin,GPIO_PIN_RESET); vTaskDelay(500); HAL_GPIO_WritePin(LED_2_GPIO_Port,LED_2_Pin,GPIO_PIN_SET); vTaskDelay(500); } / USER CODE END StartDefaultTask / } |