mirror of
https://github.com/whowechina/aic_pico.git
synced 2025-02-20 20:41:17 +01:00
Move touch lcd init to core1 for its interrupt handling
This commit is contained in:
parent
07799ee900
commit
db3573c72d
@ -122,9 +122,19 @@ static void light_mode_update()
|
||||
was_cardio = cardio;
|
||||
}
|
||||
|
||||
static void core1_init()
|
||||
{
|
||||
if (aic_runtime.touch) {
|
||||
gui_init();
|
||||
gui_level(aic_cfg->lcd.backlight);
|
||||
}
|
||||
}
|
||||
|
||||
static mutex_t core1_io_lock;
|
||||
static void core1_loop()
|
||||
{
|
||||
core1_init();
|
||||
|
||||
while (1) {
|
||||
if (mutex_try_enter(&core1_io_lock, NULL)) {
|
||||
if (aic_runtime.touch) {
|
||||
@ -378,11 +388,6 @@ void init()
|
||||
aime_virtual_aic(aic_cfg->reader.virtual_aic);
|
||||
bana_init(cdc_reader_putc);
|
||||
|
||||
if (aic_runtime.touch) {
|
||||
gui_init();
|
||||
gui_level(aic_cfg->lcd.backlight);
|
||||
}
|
||||
|
||||
cli_init("aic_pico>", "\n << AIC Pico >>\n"
|
||||
" https://github.com/whowechina\n\n");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user