You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
toaster-oven-bluepill/Core/Src/app_gui.c

22 lines
501 B

/**
* TODO file description
*/
#include <stdbool.h>
#include "app_gui.h"
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
void app_task_gui(void *argument) {
PRINTF("app_task_gui\r\n");
while (1) {
uint8_t message = 0;
bool suc = osMessageQueueGet(guiEventQueHandle, &message, NULL, pdMS_TO_TICKS(1000));
if (suc == osOK && (message != GUI_NOTIFY_TEMP_CHANGE)) {
// input events
PRINTF("Event %d\r\n", message);
}
}
}