GPIO_SYS.h 1.1 KB

123456789101112131415161718192021222324
  1. #ifndef __GPIO_SYS_H
  2. #define __GPIO_SYS_H
  3. #include "stm32f10x.h"
  4. #include "WDG.h"
  5. #include "app_def.h"
  6. extern int GPIO_SYS_init(void);
  7. extern int SYS_Reset(void);
  8. extern void Mcu_Reset(U08 flag) ;
  9. // #define ANDROID_POWER_Port GPIOB //LED线在哪个端口
  10. // #define ANDROID_POWER_LINE GPIO_Pin_3 //哪根线
  11. // #define ANDROID_POWER_RccOpen() RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,ENABLE) //时钟
  12. #define ANDROID_RESET_Port GPIOD //LED线在哪个端口
  13. #define ANDROID_RESET_LINE GPIO_Pin_2 //哪根线
  14. #define ANDROID_RESET_RccOpen() RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOD,ENABLE) //时钟
  15. // #define ANDROID_V0L_Port GPIOB //LED线在哪个端口
  16. // #define ANDROID_V0L_LINE GPIO_Pin_4 //哪根线
  17. // #define ANDROID_V0L_RccOpen() RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,ENABLE) //时钟
  18. #endif