15 lines
357 B
C
15 lines
357 B
C
#include "stm32f10x.h"
|
|
#include "key.h"
|
|
|
|
|
|
void Key_Init(void){
|
|
GPIO_InitTypeDef GPIO_InitStucture;
|
|
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB,ENABLE);
|
|
|
|
GPIO_InitStucture.GPIO_Mode=GPIO_Mode_IPU;
|
|
GPIO_InitStucture.GPIO_Pin=GPIO_Pin_13|GPIO_Pin_14;
|
|
GPIO_InitStucture.GPIO_Speed=GPIO_Speed_50MHz;
|
|
|
|
GPIO_Init(GPIOB,&GPIO_InitStucture);
|
|
}
|