#include "main.h" #include "init.h" // Простая функция задержки void Delay(volatile uint32_t nCount) { while(nCount--) {} } int main(void) { LEDs_ini(); // Инициализация светодиодов while(1) { // Включаем Зеленый (Green - PD12) GPIO_SetBits(GPIOD, GPIO_Pin_12); Delay(8000000); GPIO_ResetBits(GPIOD, GPIO_Pin_12); // Включаем Оранжевый (Orange - PD13) GPIO_SetBits(GPIOD, GPIO_Pin_13); Delay(8000000); GPIO_ResetBits(GPIOD, GPIO_Pin_13); // Включаем Красный (Red - PD14) GPIO_SetBits(GPIOD, GPIO_Pin_14); Delay(8000000); GPIO_ResetBits(GPIOD, GPIO_Pin_14); // Включаем Синий (Blue - PD15) GPIO_SetBits(GPIOD, GPIO_Pin_15); Delay(8000000); GPIO_ResetBits(GPIOD, GPIO_Pin_15); } }