микроконтроллер stm32f100, как зажечь светодиоды
Доброго времени, подскажите как зажечь светодиоды те что сбоку белые, те что на микро контролере я зажигаю так:
#include "stm32f10x.h"
#include "stm32f10x_gpio.h"
#include "stm32f10x_rcc.h"
int main(void)
{
int i;
/* Initialize Leds mounted on STM32 board */
GPIO_InitTypeDef GPIO_InitStructure;
/* Initialize LED which connected to PC6,9, Enable the Clock*/
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE);
/* Configure the GPIO_LED pin */
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8|GPIO_Pin_9|GPIO_Pin_7;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_Init(GPIOC, &GPIO_InitStructure);
while (1)
{
/* Toggle LEDs which connected to PC6*/
GPIOC->ODR ^= GPIO_Pin_8;
/* delay */
for(i=0;i<0x100000;i++);
/* Toggle LEDs which connected to PC9*/
GPIOC->ODR ^= GPIO_Pin_9;
/* delay */
for(i=0;i<0x100000;i++);
}
}
а вот те не получается.