61 lines
1.8 KiB
C
61 lines
1.8 KiB
C
/**
|
|
* @file main_common.h
|
|
* @author Alvin Young (impressionyang@outlook.com)
|
|
* @brief
|
|
* @version 0.1
|
|
* @date 2024-11-25
|
|
*
|
|
* _ _
|
|
* (_)_ _ ___ _______ ___ ___ (_)__ ___ __ _____ ____ ___ _
|
|
* / / ' \/ _ \/ __/ -_|_-<(_-</ / _ \/ _ \/ // / _ `/ _ \/ _ `/
|
|
* /_/_/_/_/ .__/_/ \__/___/___/_/\___/_//_/\_, /\_,_/_//_/\_, /
|
|
* /_/ /___/ /___/
|
|
* @copyright Copyright (c) 2024 impressionyang
|
|
*
|
|
* @par 修改日志:
|
|
* <table>
|
|
* <tr><th>Date <th>Version <th>Author <th>Description
|
|
* <tr><td>2024-11-25 <td>v1.0 <td>Alvin Young <td>首次创建
|
|
* </table>
|
|
*
|
|
*/
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
#ifndef __MAIN_COMMON_H__
|
|
#define __MAIN_COMMON_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include <stdint.h>
|
|
#include "imp_out_port.h"
|
|
/* define --------------------------------------------------------------------*/
|
|
|
|
#define IMP_TASK_ID_IDLE (0)
|
|
#define IMP_TASK_ID_MAIN_TASK (1)
|
|
#define IMP_TASK_ID_EXT_TRANS_SERVICE_TASK (2)
|
|
#define IMP_TASK_ID_DISP_SERVICE_TASK (3)
|
|
#define IMP_TASK_ID_AUDIO_SERVICE_TASK (4)
|
|
#define IMP_TASK_ID_SWITCH_CONTROL_TASK (5)
|
|
|
|
/* typedef -------------------------------------------------------------------*/
|
|
/* variables -----------------------------------------------------------------*/
|
|
|
|
extern char* imp_main_task_table[];
|
|
|
|
/* Private function(only *.c) -----------------------------------------------*/
|
|
/* Exported functions --------------------------------------------------------*/
|
|
|
|
uint8_t imp_main_common_init();
|
|
|
|
int cdc_printf(const char* fmt, ...);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif //__MAIN_COMMON_H__
|
|
|
|
/*
|
|
* EOF
|
|
*/ |