GPIO_NET.h 494 B

1234567891011121314151617
  1. #ifndef __GPIO_NET_H__
  2. #define __GPIO_NET_H__
  3. #include "stm32f10x.h"
  4. //NET的端口号
  5. #define NET_Port GPIOA //LED线在哪个端口
  6. #define NET_LINE GPIO_Pin_15 //哪根线
  7. #define NET_RccOpen() RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA,ENABLE) //时钟
  8. extern unsigned char RTL8152B;
  9. extern int GPIO_NET_init(void);
  10. extern void GPIO_NET_Tick(void);
  11. #endif