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