1. add new example for A2DP and the related btif layer source code is ported 2. modification on osi_alarm_new API to support periodic timer 3. enable macro BTA_AR_INCLUDED, BTA_AV_INCLUDED, BTA_AV_SINK_INCLUDED 4. The A2DP example cannot work and can only be built successfuly
30 lines
941 B
C
Executable file
30 lines
941 B
C
Executable file
#ifndef __BT_APP_COMMON_H__
|
|
#define __BT_APP_COMMON_H__
|
|
|
|
#include <stdint.h>
|
|
#include "osi.h"
|
|
#include "bt_common_types.h"
|
|
#include "bt_defs.h"
|
|
|
|
/* BT APP Events */
|
|
#define BT_EVT_APP (0xB000)
|
|
#define BT_EVT_APP_CONTEXT_SWITCH (0x0001 | BT_EVT_APP)
|
|
|
|
typedef void (tBTAPP_CBACK) (uint16_t event, char *p_param);
|
|
typedef void (tBTAPP_COPY_CBACK) (uint16_t event, char *p_dest, char *p_src);
|
|
|
|
typedef struct
|
|
{
|
|
BT_HDR hdr;
|
|
tBTAPP_CBACK* p_cb; /* context switch callback */
|
|
|
|
/* parameters passed to callback */
|
|
UINT16 event; /* message event id */
|
|
char p_param[0]; /* parameter area needs to be last */
|
|
} tBTAPP_CONTEXT_SWITCH_CBACK;
|
|
|
|
bt_status_t bt_app_transfer_context (tBTAPP_CBACK *p_cback, UINT16 event, char* p_params, int param_len, tBTAPP_COPY_CBACK *p_copy_cback);
|
|
|
|
void bt_app_task_start_up(void);
|
|
|
|
#endif /* __BT_APP_COMMON_H__ */
|