first commit
This commit is contained in:
15
MPU6050/APP/led.c
Normal file
15
MPU6050/APP/led.c
Normal file
@ -0,0 +1,15 @@
|
||||
#include "led.h"
|
||||
|
||||
void led_init(void)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC,ENABLE);
|
||||
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_13;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
|
||||
GPIO_Init(GPIOC,&GPIO_InitStructure);
|
||||
}
|
||||
|
Reference in New Issue
Block a user