int main() { RCC_Configuration(); GPIO_Configuration(); RTC_Conf(); ConfirureTimerForDelay(); UsartConf(); NVIC_Configuration(); SystemCoreClockUpdate(); ws2812Init(); ws2812Send(black, 16); ws2812Send(black, 2); while(1) { GPIOC->BSRR |= 1<<0; delay10(); GPIOC->BRR |= 1<<0; DelayUs(10000); } }
void init_main() { /*Initialize modules*/ timer_init(); led_init(); /*Initialize peripherals*/ USART_Init(1); TIMERS_Init(); EEPROM_Init(); ws2812Init(); ledStringInit(); ledEffectInit(); adcInit(); ExtIntInit(); ISR_init(); }