code beautifying
This commit is contained in:
@ -16,21 +16,18 @@
|
||||
|
||||
|
||||
|
||||
#include <hmi.h>
|
||||
#include <stdlib.h>
|
||||
#include <PontCoopScheduler.h>
|
||||
#include "stm32f1xx_hal.h"
|
||||
|
||||
#include "oled.h"
|
||||
#include "timer.h"
|
||||
#include "display.h"
|
||||
|
||||
extern tDisplay display;
|
||||
|
||||
|
||||
void my_setup_1() {
|
||||
schInit();
|
||||
schAdd(updateDisplay, &display, 0, 250);
|
||||
schAdd(secondTick, &display, 0, 1000);
|
||||
}
|
||||
|
||||
void my_loop() {
|
||||
@ -47,7 +44,9 @@ void my_errorHandler() {
|
||||
}
|
||||
|
||||
void my_setup_2() {
|
||||
LED_Init();
|
||||
hmiInit();
|
||||
timerInit();
|
||||
oledInit();
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user