/** ************************************************************************** * @file tcp_server.h * @version v2.0.4 * @date 2021-12-31 * @brief tcp server header ************************************************************************** * Copyright notice & Disclaimer * * The software Board Support Package (BSP) that is made available to * download from Artery official website is the copyrighted work of Artery. * Artery authorizes customers to use, copy, and distribute the BSP * software and its related documentation for the purpose of design and * development in conjunction with Artery microcontrollers. Use of the * software is governed by this copyright notice and the following disclaimer. * * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. * ************************************************************************** */ #ifndef _TCP_SERVER_H_ #define _TCP_SERVER_H_ #include "cmsis_os2.h" #ifdef __cplusplus extern "C" { #endif /** @addtogroup AT32F437_periph_examples * @{ */ /** @addtogroup 437_EMAC_tcp_server * @{ */ /** @defgroup TCP_server_definition * @{ */ /*TCP server port*/ #define TCP_LOCAL_PORT (1030) #define ETH_OK "OK" #define ETH_ERR "ERR" typedef struct { struct { uint32_t com; uint32_t addressStart; uint32_t blockCount; } BlockInfo; uint32_t blockCounter; uint32_t flashPointer; } tCom01; /** * @} */ /** @defgroup TCP_server_prototype * @{ */ void tcp_server_init(void); void vInitEthServer(); void taskEthServer(void *env); /** * @} */ /** * @} */ /** * @} */ #ifdef __cplusplus } #endif #endif