handle mouse events
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
18
main/main.c
18
main/main.c
@@ -1,19 +1,23 @@
|
||||
#include "setup.h"
|
||||
#include "freertos/idf_additions.h"
|
||||
#include "setup.h"
|
||||
|
||||
void app_task(void* param) {
|
||||
void app_task(void *param)
|
||||
{
|
||||
setup();
|
||||
while(1) {
|
||||
while (1)
|
||||
{
|
||||
loop();
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
void app_main(void) {
|
||||
xTaskCreatePinnedToCore(app_task, "main_loop", 4096, NULL, 5, NULL, tskIDLE_PRIORITY + 1);
|
||||
}
|
||||
void app_main(void)
|
||||
{
|
||||
xTaskCreatePinnedToCore(app_task, "main_loop", 4096, NULL, 5, NULL, tskIDLE_PRIORITY + 1);
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user