1234567891011121314151617 |
- #ifndef __GPIO_NET_H__
- #define __GPIO_NET_H__
- #include "stm32f10x.h"
- //NET的端口号
- #define NET_Port GPIOA //LED线在哪个端口
- #define NET_LINE GPIO_Pin_15 //哪根线
- #define NET_RccOpen() RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA,ENABLE) //时钟
-
- extern unsigned char RTL8152B;
- extern int GPIO_NET_init(void);
- extern void GPIO_NET_Tick(void);
-
- #endif
|