main.c file.
Copyright (c) 2018-2020 Atmel Corporation. All rights reserved.
#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 "osprintf.h"
#include "driver/include/m2m_wifi.h"
#include "sta.h"
#include "ap.h"
Macros | |
#define | __BTSTACK_FILE__ "main.c" |
#define | TASK_AP_PRIORITY (tskIDLE_PRIORITY + 1) |
#define | TASK_AP_STACK_SIZE (1024 / sizeof(portSTACK_TYPE)) |
#define | TASK_BT_STACK_PRIORITY (2) |
#define | TASK_BT_STACK_SIZE ((2048*2)/sizeof(portSTACK_TYPE)) |
#define | TASK_STA_PRIORITY (tskIDLE_PRIORITY + 1) |
#define | TASK_STA_STACK_SIZE (4096 / 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) |
getting-started Application entry point. More... | |
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 |
TaskHandle_t | xHandle1 = NULL |
TaskHandle_t | xHandle2 = NULL |
#define __BTSTACK_FILE__ "main.c" |
#define TASK_AP_PRIORITY (tskIDLE_PRIORITY + 1) |
Referenced by main().
#define TASK_AP_STACK_SIZE (1024 / sizeof(portSTACK_TYPE)) |
Referenced by main().
#define TASK_BT_STACK_PRIORITY (2) |
Referenced by main().
#define TASK_BT_STACK_SIZE ((2048*2)/sizeof(portSTACK_TYPE)) |
Referenced by main().
#define TASK_STA_PRIORITY (tskIDLE_PRIORITY + 1) |
Referenced by main().
#define TASK_STA_STACK_SIZE (4096 / 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 |
References btstack_uart_config_t::baudrate, hci_transport_config_uart_t::baudrate_init, bt_app_init(), btstack_chipset_atwilc3000_download_firmware(), btstack_memory_init(), btstack_run_loop_execute(), 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_transport_config_uart_t::flowcontrol, HCI_DEFAULT_BAUDRATE, btstack_uart_block_t::init, NULL, vTaskDelay(), wifi_bt_if_sem, xHandle, xSemaphoreGive, and xSemaphoreTake.
Referenced by main().
int btstack_main | ( | int | argc, |
const char * | argv[] | ||
) |
int main | ( | void | ) |
getting-started Application entry point.
References ap_task(), board_init(), bt_task(), NULL, pdPASS, serial_console_init(), sta_task(), sysclk_get_cpu_hz(), sysclk_get_peripheral_hz(), sysclk_init(), TASK_AP_PRIORITY, TASK_AP_STACK_SIZE, TASK_BT_STACK_PRIORITY, TASK_BT_STACK_SIZE, TASK_STA_PRIORITY, TASK_STA_STACK_SIZE, vSemaphoreCreateBinary, vTaskStartScheduler(), wifi_bt_if_sem, and xTaskCreate.
void SysTick_Handler | ( | void | ) |
References xPortSysTickHandler().
void vApplicationIdleHook | ( | void | ) |
This function is called by FreeRTOS idle task.
Referenced by portTASK_FUNCTION().
void vApplicationMallocFailedHook | ( | void | ) |
Referenced by pvPortMalloc().
void vApplicationStackOverflowHook | ( | xTaskHandle * | pxTask, |
signed char * | pcTaskName | ||
) |
Called if stack overflow during execution.
void vApplicationTickHook | ( | void | ) |
This function is called by FreeRTOS each tick.
Referenced by vTaskIncrementTick(), and xTaskIncrementTick().
void xPortSysTickHandler | ( | void | ) |
Referenced by SysTick_Handler().
TaskHandle_t btstack_run_loop_task |
Referenced by bt_task(), and btstack_run_loop_freertos_trigger().
|
static |
|
static |
|
static |
TaskHandle_t xHandle = NULL |
Referenced by bt_task(), main(), and xQueueCreateMutex().
TaskHandle_t xHandle1 = NULL |
TaskHandle_t xHandle2 = NULL |