Microchip® Advanced Software Framework

thirdparty/wireless/ble_sdk/apps/ble_dtm/main.c File Reference

BLE DTM.

Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>
#include "platform.h"
#include "at_ble_api.h"
#include "at_ble_trace.h"
#include "console_serial.h"
#include "serial_fifo.h"
#include "ble_utils.h"
#include "conf_serialdrv.h"
#include "serial_bridge.h"
#include "conf_extint.h"
#include "serial_drv.h"
#include "timer_hw.h"

Functions

static void ble_critical_alert (uint32_t on_ms, uint32_t off_ms)
 
static void ble_dtm_init (void)
 
static void ble_init (void)
 
void button_cb (void)
 
int main (void)
 

Variables

volatile bool button_pressed = false
 Determine if button is pressed. More...
 
uint32_t event_params_memory [256] = {0}
 
uint32_t event_pool_memory [256] = {0}
 
at_ble_init_config_t pf_cfg
 
uint32_t rx_fifo_memory [256] = {0}
 

static void ble_critical_alert ( uint32_t  on_ms,
uint32_t  off_ms 
)
static

References delay_ms.

Referenced by ble_init().

static void ble_dtm_init ( void  )
static

References ble_init().

Referenced by main().

static void ble_init ( void  )
static

UART baudrate value one of at_ble_uart_baudrate_tag values

References platform_api_list_tag::at_ble_create_signal, platform_api_list_tag::at_ble_create_timer, platform_api_list_tag::at_ble_delete_signal, platform_api_list_tag::at_ble_delete_timer, platform_api_list_tag::at_ble_gpio_set, at_ble_init(), platform_api_list_tag::at_ble_reconfigure_usart, platform_api_list_tag::at_ble_recv_async, platform_api_list_tag::at_ble_reset_signal, platform_api_list_tag::at_ble_send_sync, platform_api_list_tag::at_ble_sleep, platform_api_list_tag::at_ble_start_timer, platform_api_list_tag::at_ble_stop_timer, AT_BLE_SUCCESS, platform_api_list_tag::at_ble_trigger_signal, AT_BLE_UART, platform_api_list_tag::at_ble_wait_for_signal, AT_BTLC1000_MR, AT_BTLC1000_ZR, ble_critical_alert(), BTLC1000_EXT_PIN9, at_ble_init_config_t::btlc1000_module_version, at_ble_bus_info_t::btlc1000_uart_pinout_switch, at_ble_bus_info_t::bus_baudrate, at_ble_init_config_t::bus_info, at_ble_bus_info_t::bus_type, at_ble_init_config_t::event_mem_pool, at_ble_init_config_t::event_params_mem_pool, event_params_memory, event_pool_memory, at_ble_bus_info_t::host_external_wakeup_gpio, at_ble_init_config_t::memPool, at_ble_mempool_t::memSize, at_ble_mempool_t::memStartAdd, NULL, at_ble_init_config_t::platform_api_list, platform_configure_hw_fc_uart(), platform_configure_primary_uart(), platform_create_signal(), platform_create_timer(), platform_delete_signal(), platform_delete_timer(), platform_dtm_interface_receive(), platform_gpio_set(), platform_init(), platform_recv_async(), platform_reset_signal(), platform_send_sync(), platform_sleep(), platform_start_timer(), platform_stop_timer(), platform_trigger_signal(), platform_wait_for_signal(), at_ble_init_config_t::rx_fifo_mem_pool, rx_fifo_memory, TRACE_LVL_DISABLE, and trace_set_level().

void button_cb ( void  )

References button_pressed.

uint32_t event_params_memory[256] = {0}
uint32_t event_pool_memory[256] = {0}
uint32_t rx_fifo_memory[256] = {0}