Motion_EC_Stm32_archived/App/Inc/th_elog.h

27 lines
615 B
C
Raw Permalink Normal View History

2021-03-09 18:17:28 +08:00
#ifndef __TH_ELOG_H__
#define __TH_ELOG_H__
#include "cmsis_os2.h"
2021-03-10 11:03:35 +08:00
2021-03-14 23:24:59 +08:00
osSemaphoreId_t ElogOutputBinarySemHandle;
const osSemaphoreAttr_t ElogOutputBinarySem_attributes;
2021-03-15 19:26:10 +08:00
osSemaphoreId_t ElogUartBinarySemHandle;
const osSemaphoreAttr_t ElogUartBinarySem_attributes;
2021-03-14 23:24:59 +08:00
2021-03-11 19:09:05 +08:00
osMutexId_t ElogOutputMutexHandle;
2021-03-10 12:03:49 +08:00
const osMutexAttr_t ElogOutputMutex_attributes;
2021-03-09 18:17:28 +08:00
osThreadId_t ElogInitTaskHandle;
2021-03-10 11:03:35 +08:00
osThreadId_t ElogFlushTaskHandle;
2021-03-09 18:17:28 +08:00
const osThreadAttr_t ElogInitTask_attributes;
2021-03-10 11:03:35 +08:00
const osThreadAttr_t ElogFlushTask_attributes;
2021-03-09 18:17:28 +08:00
2021-03-15 19:26:10 +08:00
void ElogInitTask(void *argument);
void ElogFlushTask(uint8_t intervnal);
2021-03-10 11:03:35 +08:00
2021-03-09 18:17:28 +08:00
void my_elog_init();
#endif