Refactor code

This commit is contained in:
2020-11-20 08:14:46 +01:00
parent 53bacf016a
commit ffdd2beb35
8 changed files with 41 additions and 45 deletions

View File

@@ -17,7 +17,7 @@
int main()
{
cfg_init();
keyboard_init();
kbd_init();
ptimer_init();
i2c_init(I2C_BITRATE);
rtc_int0_init();
@@ -31,9 +31,9 @@ int main()
while(1)
{
keyboard_handle_input();
kbd_handle_event();
uart_handle_event(uart_buf);
if(rtc_handle_timer()) nightm_handle();
if(rtc_handle_clock()) nightm_handle();
}
}