/* Public Functions */ void hw_init(void) { hw_mcg_init(); hw_gpio_init(); hw_uart_init(); hw_rtc_init(); hw_rand_init(); }
void program_loop_init(void) { hw_rtc_init(); config_init(); io_init(); program_init(); osThreadDef(prog_loop, _prog_loop, osPriorityAboveNormal, 0, 1024); prog_loop = osThreadCreate(osThread(prog_loop), NULL); }