Symbols
loading...
Files
loading...
SourceVuSTM32 Libraries and SamplesLwIP_HTTP_Server_Socket_RTOS

LwIP_HTTP_Server_Socket_RTOS sample

LwIP_HTTP_Server_Socket_RTOS is a sample project defining the following symbols:

Most used functions

Name
Location
Summary
This function handles NMI exception.
This function handles Hard Fault exception.
This function handles Debug Monitor exception.
This function handles Memory Manage exception.
This function handles Bus Fault exception.
This function handles Usage Fault exception.
This function handles SysTick Handler.
Main program
This function handles TIM interrupt request.
Notify the User about the network interface config status
Should be called at the beginning of the program to set up the network interface. It calls the function low_level_init() to do the actual setup of the hardware. This function should be passed as a parameter to netif_add().
Custom Rx pbuf free callback
PHI IO Functions Initializes the MDIO interface GPIO and clocks.
De-Initializes the MDIO interface .
Read a PHY register through the MDIO interface.
Write a value to a PHY register through the MDIO interface.
Get the time in millisecons used for internal PHY driver process.
This function handles Ethernet interrupt request.
Check the ETH link state and update netif accordingly.
Create and send a dynamic Web Page. This page contains the list of running tasks and the number of page hits.
Initialize the HTTP server (start its thread)
This task should be signaled when a receive packet is ready to be read from the interface.
Initializes the lwIP stack
Initializes the LCD and LEDs resources.
System Clock Configuration The system Clock is configured as follow : System Clock source = PLL (HSE) SYSCLK(Hz) = 168000000 HCLK(Hz) = 168000000 AHB Prescaler = 1 APB1 Prescaler = 4 APB2 Prescaler = 2 HSE Frequency(Hz) = 25000000 PLL_M = 25 PLL_N = 336 PLL_P = 2 PLL_Q = 7 VDD(V) = 3.3 Main regulator output voltage = Scale1 mode Flash Latency(WS) = 5
Should allocate a pbuf and transfer the bytes of the incoming packet from the interface into the pbuf.
LL Driver Interface ( LwIP stack --> ETH) In this function, the hardware should be initialized. Called from ethernetif_init().
This function should do the actual transmission of the packet. The packet is contained in the pbuf that is passed to the function. This pbuf might be chained.

Other commonly used symbols

Name
Location
Summary
Internal High Speed oscillator (HSI) value. This value is used by the RCC HAL module to compute the system frequency (when HSI is used as system clock source, directly or through the PLL). Value of the Internal oscillator in Hz
Adjust the value of External High Speed oscillator (HSE) used in your application. This value is used by the RCC HAL module to compute the system frequency (when HSE is used as system clock source, directly or through the PLL). Value of the External oscillator in Hz
Miscellaneous Configuration *********************** Vector Table base offset field. This value must be a multiple of 0x200.
@file LwIP/LwIP_HTTP_Server_Socket_RTOS/Inc/main.h @author MCD Application Team Header for main.c module @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
@file LwIP/LwIP_HTTP_Server_Socket_RTOS/Inc/stm32f4xx_it.h @author MCD Application Team This file contains the headers of the interrupt handlers. @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
External clock source for I2S peripheral This value is used by the I2S HAL module to compute the I2S clock source frequency, this source is inserted directly through I2S_CKIN pad. Value of the external oscillator in Hz
Internal Low Speed oscillator (LSI) value.
External Low Speed oscillator (LSE) value. Value of the External Low Speed oscillator in Hz
Time out for HSE start up, in ms
Time out for LSE start up, in ms
@file LwIP/LwIP_HTTP_Server_Socket_RTOS/Inc/stm32f4xx_hal_conf.h @author MCD Application Team HAL configuration file. @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
This is the list of modules to be used in the HAL driver
This is the HAL system configuration section Value of VDD in mv
Transceiver Basic Control Register
Auto-Negotiation process completed
PHY status register Offset
Transceiver Basic Status Register
Enable auto-negotiation function
Select the power down mode
Set the full-duplex mode at 100 Mb/s
Set the half-duplex mode at 100 Mb/s
Set the full-duplex mode at 10 Mb/s
Set the half-duplex mode at 10 Mb/s
Restart auto-negotiation function
MII Interrupt Status and Misc. Control Register
MII Interrupt Control Register
PHY Enable output interrupt events
Enable Interrupt on change of link status
PHY link status interrupt mask
@file LwIP/LwIP_HTTP_Server_Socket_RTOS/Inc/lcd_log_conf.h @author MCD Application Team LCD Log configuration file. @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Uncomment the line below to expanse the "assert_param" macro in the HAL drivers code
NO_SYS==1: Provides VERY minimal functionality. Otherwise, use lwIP facilities.
LWIP_NETCONN==1: Enable Netconn API (require to use api_lib.c)
LWIP_SOCKET==1: Enable Socket API (require to use sockets.c)
@file ethernetif.h @author MCD Application Team Ethernet interface header file. @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
@file LwIP/LwIP_HTTP_Server_Socket_RTOS/Inc/lwipopts.h @author MCD Application Team lwIP Options Configuration. This file is based on Utilities/lwip_v1.4.1/src/include/lwip/opt.h and contains the lwIP configuration for the STM32F4x7 demonstration. @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
@file LwIP/LwIP_HTTP_Server_Socket_RTOS/Inc/app_ethernet.h @author MCD Application Team Header for app_ethernet.c module @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Set this to 1 to include "fsdata_custom.c" instead of "fsdata.c" for the
@file LwIP/LwIP_HTTP_Server_Socket_RTOS/Inc/httpserver-socket.h @author MCD Application Team header file for httpserver-socket.c @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.