GPIOA.c 487 B

1234567891011121314151617181920
  1. #include "stm32f10x.h" // Device header
  2. #include "AT.h"
  3. void GPIOA_Init(void)
  4. {
  5. RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOE, ENABLE);
  6. GPIO_InitTypeDef GPIO_InitStructure;
  7. GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
  8. GPIO_InitStructure.GPIO_Pin = WAKE_GPIO_Pin;
  9. GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
  10. GPIO_Init(WAKE_GPIO, &GPIO_InitStructure);
  11. GPIO_SetBits(WAKE_GPIO, WAKE_GPIO_Pin); // À­¸ß
  12. // GPIO_ResetBits(GPIOA, GPIO_Pin_6); // À­µÍ
  13. }