32 lines
560 B
C
32 lines
560 B
C
#ifndef APP_TASK_H
|
|
#define APP_TASK_H
|
|
|
|
#include "typedef.h"
|
|
#define NULL_VALUE 0
|
|
|
|
enum {
|
|
APP_BT_TASK,
|
|
#if TCFG_APP_MUSIC_EN
|
|
APP_MUSIC_TASK,
|
|
#endif
|
|
#if TCFG_PC_ENABLE
|
|
APP_PC_TASK,
|
|
#endif
|
|
#if TCFG_APP_AUX_EN
|
|
APP_AUX_TASK,
|
|
#endif
|
|
};
|
|
|
|
extern u8 app_curr_task;
|
|
extern u8 app_next_task;
|
|
extern u8 app_prev_task;
|
|
|
|
int app_task_switch_check(u8 app_task);
|
|
int app_core_back_to_prev_app_over_check(void);
|
|
int app_task_switch_to(u8 app_task, int priv);
|
|
void app_task_switch_next(void);
|
|
void app_task_switch_prev(void);
|
|
u8 app_get_curr_task(void);
|
|
|
|
#endif
|