| | |
| | | |
| | | |
| | | // ¼îµç¶ªÊ§ |
| | | #define ALKA_PWR_LOSE_PORT GPIOF |
| | | #define ALKA_PWR_LOSE_PIN GPIO_Pin_11 |
| | | #define ALKA_PWR_LOSE_IO_READ GPIO_ReadInputDataBit(ALKA_PWR_LOSE_PORT, ALKA_PWR_LOSE_PIN) |
| | | #define ALKA_PWR_LOSE_PORT GPIOH //?PH0ûÓÐÖжϣ¬ºóÐøÒª¸Ä£¬ÔÝʱ²»ÄÜÅäÖóÉÖжϼì²â |
| | | #define ALKA_PWR_LOSE_PIN GPIO_Pin_0 |
| | | //#define ALKA_PWR_LOSE_IO_READ GPIO_ReadInputDataBit(ALKA_PWR_LOSE_PORT, ALKA_PWR_LOSE_PIN) |
| | | #define ALKA_PWR_LOSE_IO_READ GPIOH_ReadInputDataBit(ALKA_PWR_LOSE_PIN) |
| | | |
| | | // ¼îµç¼ì²â¿ª¹Ø |
| | | #define ALKA_DETECTION_PORT GPIOF |
| | |
| | | #define BORROW_PWR_PORT GPIOG |
| | | #define BORROW_PWR_PIN GPIO_Pin_2 |
| | | |
| | | #define BORROW_PWR_ON GPIO_ResetBits(BORROW_PWR_PORT,BORROW_PWR_PIN) |
| | | #define BORROW_PWR_OFF GPIO_SetBits(BORROW_PWR_PORT,BORROW_PWR_PIN) |
| | | #define BORROW_PWR_ON GPIO_SetBits(BORROW_PWR_PORT,BORROW_PWR_PIN) |
| | | #define BORROW_PWR_OFF GPIO_ResetBits(BORROW_PWR_PORT,BORROW_PWR_PIN) |
| | | |
| | | //Íâµç¼ì²â¶Ë¿Ú |
| | | #define HWIDO_EX_PWR_PORT GPIOF |