#include "asf.h"
#include "console_serial.h"
#include "conf_board.h"
#include "conf_clock.h"
#include "btstack_chipset_atwilc3000.h"
#include "btstack_debug.h"
#include "btstack_memory.h"
#include "btstack_run_loop.h"
#include "btstack_run_loop_freertos.h"
#include "classic/btstack_link_key_db.h"
#include "hci.h"
#include "hci_dump.h"
#include "ble_firmware_3000.h"
Macros | |
#define | __BTSTACK_FILE__ "main.c" |
#define | TASK_BT_STACK_PRIORITY (2) |
#define | TASK_BT_STACK_SIZE ((2048*2)/sizeof(portSTACK_TYPE)) |
Functions | |
static void | bt_app_init (int status) |
static void | bt_task (void *arg) |
int | btstack_main (int argc, const char *argv[]) |
int | main (void) |
void | SysTick_Handler (void) |
void | vApplicationIdleHook (void) |
This function is called by FreeRTOS idle task. More... | |
void | vApplicationMallocFailedHook (void) |
void | vApplicationStackOverflowHook (xTaskHandle *pxTask, signed char *pcTaskName) |
Called if stack overflow during execution. More... | |
void | vApplicationTickHook (void) |
This function is called by FreeRTOS each tick. More... | |
void | xPortSysTickHandler (void) |
Variables | |
TaskHandle_t | btstack_run_loop_task |
static hci_transport_config_uart_t | transport_config |
static btstack_uart_config_t | uart_config |
static const btstack_uart_block_t * | uart_driver |
TaskHandle_t | xHandle = NULL |
#define __BTSTACK_FILE__ "main.c" |
#define TASK_BT_STACK_PRIORITY (2) |
Referenced by main().
#define TASK_BT_STACK_SIZE ((2048*2)/sizeof(portSTACK_TYPE)) |
Referenced by main().
|
static |
References btstack_chipset_atwilc3000_instance(), btstack_link_key_db_memory_instance(), btstack_main(), hci_init(), hci_set_chipset(), hci_set_link_key_db(), hci_transport_h4_instance(), and NULL.
Referenced by bt_task().
|
static |
int btstack_main | ( | int | argc, |
const char * | argv[] | ||
) |
int main | ( | void | ) |
References btstack_uart_config_t::baudrate, board_init(), bt_task(), btstack_memory_init(), btstack_run_loop_freertos_get_instance(), btstack_run_loop_init(), btstack_uart_block_freertos_instance(), btstack_uart_config_t::device_name, hci_transport_config_uart_t::device_name, btstack_uart_config_t::flowcontrol, HCI_DEFAULT_BAUDRATE, btstack_uart_block_t::init, NULL, pdPASS, serial_console_init(), sysclk_get_cpu_hz(), sysclk_get_peripheral_hz(), sysclk_init(), TASK_BT_STACK_PRIORITY, TASK_BT_STACK_SIZE, vTaskStartScheduler(), xHandle, and xTaskCreate.
void SysTick_Handler | ( | void | ) |
References xPortSysTickHandler().
void vApplicationIdleHook | ( | void | ) |
This function is called by FreeRTOS idle task.
void vApplicationMallocFailedHook | ( | void | ) |
void vApplicationStackOverflowHook | ( | xTaskHandle * | pxTask, |
signed char * | pcTaskName | ||
) |
Called if stack overflow during execution.
void vApplicationTickHook | ( | void | ) |
This function is called by FreeRTOS each tick.
void xPortSysTickHandler | ( | void | ) |
TaskHandle_t btstack_run_loop_task |
|
static |
|
static |
|
static |
TaskHandle_t xHandle = NULL |