first commit
This commit is contained in:
13
User/main.c
Normal file
13
User/main.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "stm32f10x.h"
|
||||
int main(void){
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE);
|
||||
GPIO_InitTypeDef GPIO_InitStruct;
|
||||
GPIO_InitStruct.GPIO_Mode = GPIO_Mode_Out_PP;
|
||||
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_13;
|
||||
GPIO_InitStruct.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_Init(GPIOC, &GPIO_InitStruct);
|
||||
// GPIO_SetBits(GPIOC, GPIO_Pin_13);
|
||||
GPIO_ResetBits(GPIOC, GPIO_Pin_13);
|
||||
while(1){
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user