Microchip® Advanced Software Framework

btstack_uart_block_freertos.c File Reference
#include "btstack_debug.h"
#include "btstack_uart_block.h"
#include "btstack_run_loop_freertos.h"
#include "hal_uart_dma.h"
#include "FreeRTOS.h"

Macros

#define __BTSTACK_FILE__   "btstack_uart_block_freertos.c"
 

Functions

static int btstack_uart_block_freertos_close (void)
 
static int btstack_uart_block_freertos_init (const btstack_uart_config_t *config)
 
const btstack_uart_block_tbtstack_uart_block_freertos_instance (void)
 
static int btstack_uart_block_freertos_open (void)
 
static void btstack_uart_block_freertos_process (btstack_data_source_t *ds, btstack_data_source_callback_type_t callback_type)
 
static void btstack_uart_block_freertos_received_isr (void)
 
static void btstack_uart_block_freertos_sent_isr (void)
 
static void btstack_uart_block_freertos_set_block_received (void(*block_handler)(void))
 
static void btstack_uart_block_freertos_set_block_sent (void(*block_handler)(void))
 
static int btstack_uart_block_freertos_set_parity (int parity)
 

Variables

static void(* block_received )(void)
 
static void(* block_sent )(void)
 
static const btstack_uart_block_t btstack_uart_block_freertos
 
static int receive_complete
 
static int send_complete
 
static btstack_data_source_t transport_data_source
 
static const
btstack_uart_config_t
uart_config
 

#define __BTSTACK_FILE__   "btstack_uart_block_freertos.c"

static int btstack_uart_block_freertos_close ( void  )
static
const btstack_uart_block_t* btstack_uart_block_freertos_instance ( void  )

References btstack_uart_block_freertos.

Referenced by bt_task(), and main().

static int btstack_uart_block_freertos_open ( void  )
static
static void btstack_uart_block_freertos_process ( btstack_data_source_t ds,
btstack_data_source_callback_type_t  callback_type 
)
static
static void btstack_uart_block_freertos_received_isr ( void  )
static
static void btstack_uart_block_freertos_sent_isr ( void  )
static
static void btstack_uart_block_freertos_set_block_received ( void(*)(void)  block_handler)
static

References block_received.

static void btstack_uart_block_freertos_set_block_sent ( void(*)(void)  block_handler)
static

References block_sent.

static int btstack_uart_block_freertos_set_parity ( int  parity)
static

void(* block_received)(void)
static
void(* block_sent)(void)
static
const btstack_uart_block_t btstack_uart_block_freertos
static
Initial value:
= {
NULL,
}
static int btstack_uart_block_freertos_init(const btstack_uart_config_t *config)
Definition: btstack_uart_block_freertos.c:106
static int btstack_uart_block_freertos_open(void)
Definition: btstack_uart_block_freertos.c:118
#define NULL
Definition: src/include/lwip/def.h:47
static int btstack_uart_block_freertos_close(void)
Definition: btstack_uart_block_freertos.c:124
static void btstack_uart_block_freertos_set_block_received(void(*block_handler)(void))
Definition: btstack_uart_block_freertos.c:131
static int btstack_uart_block_freertos_set_parity(int parity)
Definition: btstack_uart_block_freertos.c:139
void hal_uart_dma_send_block(const uint8_t *buffer, uint16_t length)
Send block.
Definition: hal_uart.c:179
static void btstack_uart_block_freertos_set_block_sent(void(*block_handler)(void))
Definition: btstack_uart_block_freertos.c:135
void hal_uart_dma_receive_block(uint8_t *buffer, uint16_t len)
Receive block.
Definition: hal_uart.c:192
int hal_uart_dma_set_baud(uint32_t baud)
Set baud rate.
Definition: hal_uart.c:139

Referenced by btstack_uart_block_freertos_instance().

btstack_data_source_t transport_data_source
static
const btstack_uart_config_t* uart_config
static