platform interface declarations
Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
void | configure_usart (void) |
void | configure_usart_callbacks (void) |
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_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 | send_user_data (void) |
void | uart_read_data (uint16_t *data) |
void | uart_write_sync (uint8_t *data, uint16_t length) |
void | usart_read_callback (struct usart_module *const usart_module) |
void configure_usart | ( | void | ) |
void configure_usart_callbacks | ( | void | ) |
void platform_ble_mode_select | ( | uint8_t | mode | ) |
References BM_MODE_Init(), and BM_MODE_Set().
void* platform_create_timer | ( | void(*)(void *) | timer_cb | ) |
References platform_create_hw_timer().
void platform_delete_timer | ( | void * | timer_handle | ) |
References platform_delete_bus_timer().
void platform_gpio_set | ( | gpio_pin_t | pin, |
gpio_status_t | status | ||
) |
void platform_init | ( | void | ) |
References ble_configure_control_pin(), bm_host_wakeup_config(), configure_serial_drv(), and system_interrupt_enable_global().
Referenced by ble_mgr_device_init().
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 | ) |
References Assert, and recv_async_cb.
Referenced by serial_drv_read_cb().
void platform_recv_async | ( | uart_recv_async_cb_t | recv_async_callback | ) |
References platform_start_rx(), and recv_async_cb.
void platform_send_sync | ( | uint8_t * | data, |
uint32_t | length | ||
) |
References bm7x_wakeup_pin_set_high(), bm7x_wakeup_pin_set_low(), delay_ms, and serial_drv_send().
void platform_sleep | ( | uint32_t | ms | ) |
References delay_ms.
void platform_start_timer | ( | void * | timer_handle, |
uint32_t | ms | ||
) |
void platform_stop_timer | ( | void * | timer_handle | ) |
bool platform_wakeup_pin_status | ( | void | ) |
References bm7x_wakeup_pin_level().
void read_async_callback | ( | uart_recv_async_cb_t | recv_async_callback | ) |
References read_data_async(), and uart_read_async_cb.
void read_data_async | ( | void | ) |
References rx_data, and uart_read_data().
Referenced by read_async_callback().
void send_user_data | ( | void | ) |
void uart_read_data | ( | uint16_t * | data | ) |
References usart_instance, and usart_read_job().
Referenced by read_data_async().
void uart_write_sync | ( | uint8_t * | data, |
uint16_t | length | ||
) |
void usart_read_callback | ( | struct usart_module *const | usart_module | ) |