示例#1
0
/* Public Functions */
void hw_init(void)
{
    hw_mcg_init();
    hw_gpio_init();
    hw_uart_init();
    hw_rtc_init();
    hw_rand_init();
}
示例#2
0
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);
}