aboutsummaryrefslogtreecommitdiff
path: root/src/sample/io_sample/SPI/Polling_fullduplex/ble_peripheral/app_task.h
blob: 5d5918a41018350713a877bdadf6c56d7791d12f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
*****************************************************************************************
*     Copyright(c) 2017, Realtek Semiconductor Corporation. All rights reserved.
*****************************************************************************************
* @file      app_task.h
* @brief     Routines to create App task and handle events & messages
* @author    jane
* @date      2017-06-02
* @version   v1.0
**************************************************************************************
* @attention
* <h2><center>&copy; COPYRIGHT 2017 Realtek Semiconductor Corporation</center></h2>
**************************************************************************************
*/
#ifndef _APP_TASK_H_
#define _APP_TASK_H_

#include <string.h>

#include "os_msg.h"
#include "os_queue.h"
#include "os_sched.h"
#include "os_task.h"
#include "os_timer.h"

#include "app_msg.h"

#include "trace.h"


/**
  * @brief      Send msg to app task.
  * @param[in]  p_handle: The handle to the message queue being peeked.
  * @return     The status of the message queue peek.
  * @retval     true:Message queue was peeked successfully.
  * @retval     false:Message queue was failed to peek.
  */
bool app_send_msg_to_apptask(T_IO_MSG *p_msg);

/**
  * @brief  Initialize app task
  * @return void
  */
void app_task_init(void);

#endif