#include <asf.h>
#include "platform.h"
#include "console_serial.h"
#include "timer_hw.h"
#include "ble_utils.h"
#include "at_ble_api.h"
#include "ble_manager.h"
#include "at_ble_trace.h"
#include "conf_extint.h"
Macros | |
#define | APP_CID 0x40 |
#define | APP_CREDIT 0x7FFF |
#define | APP_DATA_LEN 507 |
#define | APP_PSM 0x80 |
#define | APP_TIMER_EVENT_ID (1) |
#define | TIMER_INTERVAL (1) |
Functions | |
static at_ble_status_t | app_init (void) |
static at_ble_lecb_status | at_app_send_lecb (uint16_t credit, uint8_t *data) |
at_ble_status_t | ble_adv_report (void *params) |
at_ble_status_t | ble_l2cap_connected (void *params) |
at_ble_status_t | ble_l2cap_disconnected (void *params) |
at_ble_status_t | l2cap_connected (void *parma) |
at_ble_status_t | l2cap_credit_indication (void *params) |
static at_ble_status_t | l2cap_custom_event (void *param) |
at_ble_status_t | l2cap_data_recv (void *params) |
at_ble_status_t | l2cap_disconnect (void *params) |
at_ble_status_t | l2cap_send_resp (void *params) |
int | main (void) |
static void | timer_callback_handler (void) |
Variables | |
user_custom_event_t | app_timer_event |
static const ble_l2cap_event_cb_t | at_ble_mgr_l2cap_event_handle |
static uint8_t | au8AdvData [] |
static uint8_t | au8ScanRspData [] |
static const ble_gap_event_cb_t | ble_mgr_l2cap_gap_handle |
uint8_t | data [APP_DATA_LEN] |
static uint16_t | dest_credit = 0 |
at_ble_handle_t | gstHandle = 0xFFFF |
static uint32_t | gu32NumOfSend = 0 |
static const ble_custom_event_cb_t | l2cap_custom_event_cb |
static uint8_t | payloadCounter = 1 |
static uint32_t | time_count =0 |
bool volatile | timer_cb_done = false |
#define APP_CID 0x40 |
Referenced by at_app_send_lecb().
#define APP_CREDIT 0x7FFF |
#define APP_DATA_LEN 507 |
Referenced by at_app_send_lecb(), and main().
#define APP_PSM 0x80 |
#define APP_TIMER_EVENT_ID (1) |
Referenced by l2cap_custom_event().
#define TIMER_INTERVAL (1) |
Referenced by at_app_send_lecb().
|
static |
|
static |
at_ble_status_t ble_adv_report | ( | void * | params | ) |
References AT_BLE_SUCCESS.
at_ble_status_t ble_l2cap_connected | ( | void * | params | ) |
at_ble_status_t ble_l2cap_disconnected | ( | void * | params | ) |
at_ble_status_t l2cap_connected | ( | void * | parma | ) |
at_ble_status_t l2cap_credit_indication | ( | void * | params | ) |
|
static |
References APP_TIMER_EVENT_ID, AT_BLE_FAILURE, AT_BLE_SUCCESS, hw_timer_stop(), time_count, and timer_cb_done.
at_ble_status_t l2cap_data_recv | ( | void * | params | ) |
at_ble_status_t l2cap_disconnect | ( | void * | params | ) |
at_ble_status_t l2cap_send_resp | ( | void * | params | ) |
int main | ( | void | ) |
References APP_DATA_LEN, app_init(), AT_BLE_SUCCESS, BLE_CUSTOM_EVENT_TYPE, ble_device_init(), ble_event_task(), BLE_GAP_EVENT_TYPE, BLE_L2CAP_EVENT_TYPE, ble_mgr_events_callback_handler(), board_init(), data, DBG_LOG, delay_init(), gu32NumOfSend, hw_timer_init(), hw_timer_register_callback(), NULL, REGISTER_CALL_BACK, serial_console_init(), system_init(), timer_callback_handler(), and timer_cb_done.
|
static |
References at_ble_event_user_defined_post().
user_custom_event_t app_timer_event |
|
static |
|
static |
Referenced by app_init().
|
static |
Referenced by app_init().
|
static |
uint8_t data[APP_DATA_LEN] |
|
static |
Referenced by at_app_send_lecb().
at_ble_handle_t gstHandle = 0xFFFF |
|
static |
Referenced by at_app_send_lecb(), and main().
|
static |
|
static |
|
static |
Referenced by l2cap_custom_event().