#include <stdio.h>
#include "main.h"
void Delay(__IO uint32_t nCount)
{
for(; nCount != 0; nCount--);
}
void GPIO_Configuration()
{
GPIO_InitType GPIO_InitStructure;
RCC_EnableAPB2PeriphClk(RCC_APB2_PERIPH_GPIOB, ENABLE);
/* */
GPIO_InitStructure.Pin = GPIO_PIN_6 | GPIO_PIN_7;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_InitPeripheral(GPIOB, &GPIO_InitStructure);
}
int main()
{
GPIO_Configuration();
while(1)
{
GPIO_SetBits(GPIOB, GPIO_PIN_6);
GPIO_SetBits(GPIOB, GPIO_PIN_7);
}
}