| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- /*
- * fec.h
- *
- * Created on: 2019-9-4
- * Author: sunxi
- */
- #ifndef FEC_H_
- #define FEC_H_
- #ifdef __LIGHT_DIFF_ACT_PRO__ // sunxi 20190904 光差保护
- #define FEC_LP_BUF_MAX 64 // 缓冲区容量最大值
- struct fec_lp_rx_buf
- {
- bool bvalid;
- unsigned char len;
- unsigned char buf[FEC_LP_BUF_MAX];
- };
- #if 0 // sunxi 20191015
- #define FEC_LP_BUF_CNT_MAX 16 // 发送缓冲区数量掩码
- extern unsigned char fec2_lp_rx_head ;
- extern unsigned char fec2_lp_rx_tail ;
- extern struct fec_lp_rx_buf fec2_lp_rxbuf[FEC_LP_BUF_CNT_MAX];
- #else // sunxi 20191015
- extern unsigned int fec2_lp_rx_cnt;
- extern struct fec_lp_rx_buf fec2_lp_rxbuf;
- #endif // sunxi 20191015
- int fec2_reinit(void);
- int fec2_exit(void);
- int fec2_lp_start_xmit(unsigned char *data, int len);
- #endif // __LIGHT_DIFF_ACT_PRO__
- #endif /* FEC_H_ */
|