2021-02-28 14:18:24 +00:00
|
|
|
#ifndef __USER_TASKS_H
|
|
|
|
#define __USER_TASKS_H
|
|
|
|
|
|
|
|
#include "cmsis_os2.h"
|
|
|
|
|
2021-03-03 15:52:47 +00:00
|
|
|
#define USER_LVGL_EVENT_FLAG_READY 0x00000001
|
2021-03-04 15:58:50 +00:00
|
|
|
#define USER_LVGL_EVENT_DMA2D_READY 0x00000002
|
2021-03-03 15:52:47 +00:00
|
|
|
|
2021-02-28 14:18:24 +00:00
|
|
|
void user_tasks_init(void);
|
|
|
|
|
2021-03-02 17:33:59 +00:00
|
|
|
extern osThreadId_t g_user_hello_task_handle;
|
|
|
|
extern osThreadAttr_t g_user_hello_task_attributes;
|
2021-03-03 15:52:47 +00:00
|
|
|
|
|
|
|
void user_hello_task(void *argument);
|
|
|
|
|
|
|
|
extern osThreadId_t g_user_lvgl_task_handle;
|
|
|
|
extern osThreadAttr_t g_user_lvgl_task_attributes;
|
|
|
|
|
|
|
|
extern osMutexId_t g_user_lvgl_mutex_handle;
|
|
|
|
extern osMutexAttr_t g_user_lvgl_mutex_attributes;
|
|
|
|
|
|
|
|
extern osEventFlagsId_t g_user_lvgl_event_handle;
|
|
|
|
|
|
|
|
void user_lvgl_task(void *argument);
|
2021-02-28 14:18:24 +00:00
|
|
|
|
2021-03-05 17:55:08 +00:00
|
|
|
extern osThreadId_t g_user_sysview_task_handle;
|
|
|
|
extern osThreadAttr_t g_user_sysview_task_attributes;
|
|
|
|
|
|
|
|
extern osSemaphoreId_t g_user_sysview_uart_rx_semphr;
|
|
|
|
extern osSemaphoreId_t g_user_sysview_uart_tx_semphr;
|
|
|
|
void user_sysview_task(void *argument);
|
|
|
|
|
2021-02-28 14:18:24 +00:00
|
|
|
#endif
|