34 lines
649 B
C
34 lines
649 B
C
#ifndef GUI_SPIRIT_ISLAND_API_H
|
|
#define GUI_SPIRIT_ISLAND_API_H
|
|
#include "app_variable.h"
|
|
#define MAX_TASK_NUM 4
|
|
|
|
|
|
enum
|
|
{
|
|
none = 0,
|
|
nomessage,
|
|
message,
|
|
music,
|
|
stopwatch
|
|
};
|
|
|
|
typedef struct
|
|
{
|
|
bool is_valid;
|
|
u8 type;
|
|
u8 message_type;
|
|
u32 icon_addr;
|
|
u32 red_remind_addr;
|
|
char *text;
|
|
}spirit_island_controls_t;
|
|
|
|
|
|
uint8_t si_activated_task(u8 type,u8 message_type);//区分消息内容
|
|
int si_delet_task(int id);
|
|
spirit_island_controls_t *si_enforce_task(void);
|
|
void spirit_island_init(void);
|
|
int get_si_tail_index(void);
|
|
#endif
|
|
|