-
-
Save anonymous/30dd74b6d0df1a6373287adaad361754 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _APP_TASK_H | |
#define _APP_TASK_H | |
#include <stdlib.h> | |
#include <stdint.h> | |
#define APP_TASK_QUEUE_LEN 20 | |
#define APP_TASK_STACK_SIZE 4096 | |
#define APP_TASK_PRIORITY 3 | |
enum app_cmd { | |
APPCMD_DO_SOMETHING, | |
}; | |
typedef struct app_task_msg { | |
enum app_cmd cmd; | |
uint16_t data; | |
void (*cb)(struct app_task_msg*); | |
} app_task_msg_t; | |
OsiMsgQ_t *apptask_start(); | |
void apptask_msg(); | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment