Microchip® Advanced Software Framework

ble_host_sdk/src/platform.c File Reference
#include "platform_files.h"
#include "bm_mode.h"
#include "event_mem.h"
#include "bm_application_mode.h"
#include "ble_api.h"
#include "platform.h"

Functions

void platform_ble_mode_select (uint8_t mode)
 
void * platform_create_timer (void(*timer_cb)(void *))
 
void platform_delete_timer (void *timer_handle)
 
void platform_gpio_set (gpio_pin_t pin, gpio_status_t status)
 
void platform_host_wake_interrupt_handler (void)
 
void platform_init (void)
 
void platform_mode_get (BM_MODE *mode)
 
void platform_mode_set (BM_MODE mode)
 
void platform_process_rxdata (uint8_t t_rx_data)
 
void platform_recv_async (uart_recv_async_cb_t recv_async_callback)
 
void platform_send_sync (uint8_t *data, uint32_t length)
 
void platform_sleep (uint32_t ms)
 
void platform_start_timer (void *timer_handle, uint32_t ms)
 
void platform_stop_timer (void *timer_handle)
 
bool platform_wakeup_pin_status (void)
 
void read_async_callback (uart_recv_async_cb_t recv_async_callback)
 
void read_data_async (void)
 
void uart_read_data (uint16_t *data)
 

Variables

bool disconnect_in_progress
 
static uart_recv_async_cb_t recv_async_cb = NULL
 
static uint16_t rx_data = 0
 
static uart_recv_async_cb_t uart_read_async_cb = NULL
 
static struct usart_module usart_instance
 

void platform_ble_mode_select ( uint8_t  mode)

References BM_MODE_Init(), and BM_MODE_Set().

void* platform_create_timer ( void(*)(void *)  timer_cb)
void platform_delete_timer ( void *  timer_handle)
void platform_gpio_set ( gpio_pin_t  pin,
gpio_status_t  status 
)

References BM7X_PIN_MODE, BM7X_PIN_RESET, BM7X_PIN_RX_IND, and GPIO_HIGH.

Referenced by ble_init(), and main().

void platform_host_wake_interrupt_handler ( void  )
void platform_init ( void  )
void platform_mode_get ( BM_MODE mode)

References BM_MODE_Get().

void platform_mode_set ( BM_MODE  mode)

References BM_MODE_Set().

void platform_process_rxdata ( uint8_t  t_rx_data)
void platform_recv_async ( uart_recv_async_cb_t  recv_async_callback)

References platform_start_rx(), and recv_async_cb.

Referenced by ble_init().

void platform_send_sync ( uint8_t *  data,
uint32_t  length 
)
void platform_sleep ( uint32_t  ms)
void platform_start_timer ( void *  timer_handle,
uint32_t  ms 
)
void platform_stop_timer ( void *  timer_handle)
bool platform_wakeup_pin_status ( void  )
void read_async_callback ( uart_recv_async_cb_t  recv_async_callback)
void read_data_async ( void  )

References rx_data, and uart_read_data().

Referenced by read_async_callback().

void uart_read_data ( uint16_t *  data)

References usart_instance, and usart_read_job().

Referenced by read_data_async().

bool disconnect_in_progress
uart_recv_async_cb_t recv_async_cb = NULL
static
uint16_t rx_data = 0
static

Referenced by read_data_async().

uart_recv_async_cb_t uart_read_async_cb = NULL
static

Referenced by read_async_callback().

struct usart_module usart_instance
static