Implement LVGL with SDL for simulator (#16)
* Implemented LVGL with SDL for simulator * cleanup * added SDL to build * build fix * mutex fixes * sim app cleanup and improvements * docs updated * fix for sdl? * fix for SDL cmake setup
This commit is contained in:
committed by
GitHub
parent
18a5c5aa45
commit
d6baf40d0b
+20
-25
@@ -1,32 +1,27 @@
|
||||
#include "FreeRTOS.h"
|
||||
#include "log.h"
|
||||
#include "portmacro.h"
|
||||
#include "hello_world/hello_world.h"
|
||||
#include "lvgl_hal.h"
|
||||
#include "tactility.h"
|
||||
#include "ui/lvgl_sync.h"
|
||||
|
||||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
|
||||
void vAssertCalled(TT_UNUSED unsigned long line, TT_UNUSED const char* const file) {
|
||||
static portBASE_TYPE xPrinted = pdFALSE;
|
||||
volatile uint32_t set_to_nonzero_in_debugger_to_continue = 0;
|
||||
#define TAG "main"
|
||||
|
||||
taskENTER_CRITICAL();
|
||||
{
|
||||
// Step out by attaching a debugger and setting set_to_nonzero_in_debugger_to_continue
|
||||
while (set_to_nonzero_in_debugger_to_continue == 0) { /* NO-OP */
|
||||
}
|
||||
}
|
||||
taskEXIT_CRITICAL();
|
||||
}
|
||||
_Noreturn void app_main() {
|
||||
static const Config config = {
|
||||
.apps = {
|
||||
&hello_world_app
|
||||
},
|
||||
.services = {},
|
||||
.auto_start_app_id = NULL
|
||||
};
|
||||
|
||||
int main() {
|
||||
// static const Config config = {
|
||||
// .apps = {
|
||||
// &hello_world_app
|
||||
// },
|
||||
// .services = { },
|
||||
// .auto_start_app_id = NULL
|
||||
// };
|
||||
//
|
||||
// tactility_start(&config);
|
||||
TT_LOG_I("app", "Hello, world!");
|
||||
return 0;
|
||||
|
||||
tt_init(&config);
|
||||
|
||||
while (true) {
|
||||
vTaskDelay(1000);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user