source: S-port/trunk/LWIP/Target/ethernetif.h

Last change on this file was 1, checked in by AlexLir, 3 years ago
File size: 1.8 KB
Line 
1/**
2 ******************************************************************************
3 * File Name : ethernetif.h
4 * Description : This file provides initialization code for LWIP
5 * middleWare.
6 ******************************************************************************
7 * @attention
8 *
9 * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
10 * All rights reserved.</center></h2>
11 *
12 * This software component is licensed by ST under Ultimate Liberty license
13 * SLA0044, the "License"; You may not use this file except in compliance with
14 * the License. You may obtain a copy of the License at:
15 * www.st.com/SLA0044
16 *
17 ******************************************************************************
18 */
19
20#ifndef __ETHERNETIF_H__
21#define __ETHERNETIF_H__
22
23#include "lwip/err.h"
24#include "lwip/netif.h"
25#include "cmsis_os.h"
26
27/* Exported types ------------------------------------------------------------*/
28/* Structure that include link thread parameters */
29struct link_str {
30 struct netif *netif;
31 osSemaphoreId semaphore;
32};
33
34/* Within 'USER CODE' section, code will be kept by default at each generation */
35/* USER CODE BEGIN 0 */
36
37/* USER CODE END 0 */
38
39/* Exported functions ------------------------------------------------------- */
40void mac_init(void);
41err_t ethernetif_init(struct netif *netif);
42
43void ethernetif_input(void const * argument);
44void ethernetif_set_link(void const *argument);
45void ethernetif_update_config(struct netif *netif);
46void ethernetif_notify_conn_changed(struct netif *netif);
47//void my_ethernetif_input(struct netif *netif);
48
49u32_t sys_jiffies(void);
50u32_t sys_now(void);
51
52/* USER CODE BEGIN 1 */
53
54/* USER CODE END 1 */
55#endif
56
57/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
Note: See TracBrowser for help on using the repository browser.