SAM L21 serial driver configuration.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
Functions | |
static void | ble_configure_control_pin (void) |
static void | ble_enable_pin_set_high (void) |
static void | ble_enable_pin_set_low (void) |
static void | ble_reset (void) |
static bool | ble_wakeup_pin_level (void) |
static void | ble_wakeup_pin_set_high (void) |
static void | ble_wakeup_pin_set_low (void) |
static bool | btlc1000_cts_pin_level (void) |
static void | btlc1000_host_wakeup_config (void) |
static void | btlc1000_host_wakeup_handler (void) |
static bool | host_event_data_ready_pin_level (void) |
void | platform_host_wake_interrupt_handler (void) |
void | serial_rx_callback (void) |
void | serial_tx_callback (void) |
#define BLE_MAX_RX_PAYLOAD_SIZE 1024 |
#define BLE_MAX_TX_PAYLOAD_SIZE 1024 |
#define BLE_UART_CTS_PIN (EXT1_PIN_18) |
#define BLE_UART_RTS_PIN (EXT1_PIN_16) |
#define BTLC1000_CHIP_ENABLE_PIN (EXT1_PIN_7) |
Referenced by ble_configure_control_pin(), ble_enable_pin_set_high(), and ble_enable_pin_set_low().
#define BTLC1000_HOST_WAKEUP_EIC_LINE 4 |
Referenced by btlc1000_host_wakeup_config().
#define BTLC1000_HOST_WAKEUP_EIC_MUX MUX_PB04A_EIC_EXTINT4 |
Referenced by btlc1000_host_wakeup_config().
#define BTLC1000_HOST_WAKEUP_EIC_PIN PIN_PB04A_EIC_EXTINT4 |
Referenced by btlc1000_host_wakeup_config().
#define BTLC1000_HOST_WAKEUP_PIN EXT1_PIN_9 |
Referenced by host_event_data_ready_pin_level().
#define BTLC1000_RESET_MS (50) |
Referenced by ble_configure_control_pin(), and ble_reset().
#define BTLC1000_UART_CTS_PIN (EXT1_PIN_16) |
Referenced by btlc1000_cts_pin_level().
#define BTLC1000_WAKEUP_PIN (EXT1_PIN_3) |
Referenced by ble_configure_control_pin(), ble_wakeup_pin_level(), ble_wakeup_pin_set_high(), and ble_wakeup_pin_set_low().
#define CONF_BLE_MUX_SETTING EXT1_UART_SERCOM_MUX_SETTING |
Referenced by configure_serial_drv().
#define CONF_BLE_PINMUX_PAD0 EXT1_UART_SERCOM_PINMUX_PAD0 |
Referenced by configure_serial_drv().
#define CONF_BLE_PINMUX_PAD1 EXT1_UART_SERCOM_PINMUX_PAD1 |
Referenced by configure_serial_drv().
#define CONF_BLE_PINMUX_PAD2 EXT1_UART_SERCOM_PINMUX_PAD2 |
Referenced by configure_serial_drv().
#define CONF_BLE_PINMUX_PAD3 EXT1_UART_SERCOM_PINMUX_PAD3 |
Referenced by configure_serial_drv().
#define CONF_BLE_UART_CLOCK GCLK_GENERATOR_0 |
Referenced by configure_serial_drv().
#define CONF_BLE_USART_MODULE EXT1_UART_MODULE |
Referenced by configure_serial_drv().
#define CONF_FLCR_BLE_BAUDRATE 115200 |
#define CONF_FLCR_BLE_MUX_SETTING USART_RX_1_TX_0_RTS_2_CTS_3 |
Referenced by usart_configure_flowcontrol().
#define CONF_FLCR_BLE_PINMUX_PAD0 PINMUX_PA04D_SERCOM0_PAD0 |
Referenced by usart_configure_flowcontrol().
#define CONF_FLCR_BLE_PINMUX_PAD1 PINMUX_PA05D_SERCOM0_PAD1 |
Referenced by usart_configure_flowcontrol().
#define CONF_FLCR_BLE_PINMUX_PAD2 PINMUX_PA06D_SERCOM0_PAD2 |
Referenced by usart_configure_flowcontrol().
#define CONF_FLCR_BLE_PINMUX_PAD3 PINMUX_PA07D_SERCOM0_PAD3 |
Referenced by usart_configure_flowcontrol().
#define CONF_FLCR_BLE_UART_CLOCK GCLK_GENERATOR_0 |
Referenced by usart_configure_flowcontrol().
#define CONF_FLCR_BLE_USART_MODULE SERCOM0 |
Referenced by usart_configure_flowcontrol().
#define CONF_UART_BAUDRATE 115200 |
Referenced by configure_serial_drv(), and platform_init().
#define HOST_SYSTEM_SLEEP_MODE SYSTEM_SLEEPMODE_IDLE_2 |
Referenced by platform_set_hostsleep().
#define IOPORT_PIN_LEVEL_HIGH (true) |
Referenced by ble_enable_pin_set_high(), and ble_wakeup_pin_set_high().
#define IOPORT_PIN_LEVEL_LOW (false) |
Referenced by ble_enable_pin_set_low(), and ble_wakeup_pin_set_low().
#define SERIAL_DRV_RX_CB serial_rx_callback |
#define SERIAL_DRV_RX_CB_ENABLE true |
#define SERIAL_DRV_TX_CB serial_tx_callback |
#define SERIAL_DRV_TX_CB_ENABLE true |
|
inlinestatic |
References ble_enable_pin_set_high(), ble_enable_pin_set_low(), ble_wakeup_pin_set_high(), BTLC1000_CHIP_ENABLE_PIN, BTLC1000_RESET_MS, BTLC1000_WAKEUP_PIN, delay_init(), delay_ms, port_config::direction, port_config::input_pull, port_get_config_defaults(), PORT_PIN_DIR_OUTPUT, PORT_PIN_PULL_DOWN, and port_pin_set_config().
Referenced by platform_init().
|
inlinestatic |
References BTLC1000_CHIP_ENABLE_PIN, IOPORT_PIN_LEVEL_HIGH, and port_pin_set_output_level().
Referenced by ble_configure_control_pin(), ble_reset(), and platform_gpio_set().
|
inlinestatic |
References BTLC1000_CHIP_ENABLE_PIN, IOPORT_PIN_LEVEL_LOW, and port_pin_set_output_level().
Referenced by ble_configure_control_pin(), ble_reset(), and platform_gpio_set().
|
inlinestatic |
|
inlinestatic |
References BTLC1000_WAKEUP_PIN, and port_pin_get_output_level().
Referenced by platform_enter_sleep(), and platform_wakeup_pin_status().
|
inlinestatic |
|
inlinestatic |
References BTLC1000_WAKEUP_PIN, IOPORT_PIN_LEVEL_LOW, and port_pin_set_output_level().
Referenced by ble_reset(), and platform_gpio_set().
|
inlinestatic |
References BTLC1000_UART_CTS_PIN, and port_pin_get_output_level().
|
inlinestatic |
References BTLC1000_HOST_WAKEUP_EIC_LINE, BTLC1000_HOST_WAKEUP_EIC_MUX, BTLC1000_HOST_WAKEUP_EIC_PIN, btlc1000_host_wakeup_handler(), extint_chan_conf::detection_criteria, EXTINT_CALLBACK_TYPE_DETECT, extint_chan_enable_callback(), extint_chan_get_config_defaults(), extint_chan_set_config(), EXTINT_DETECT_FALLING, EXTINT_PULL_UP, extint_register_callback(), extint_chan_conf::filter_input_signal, extint_chan_conf::gpio_pin, extint_chan_conf::gpio_pin_mux, extint_chan_conf::gpio_pin_pull, and extint_chan_conf::wake_if_sleeping.
Referenced by platform_init().
|
inlinestatic |
References platform_host_wake_interrupt_handler().
Referenced by btlc1000_host_wakeup_config().
|
inlinestatic |
References BTLC1000_HOST_WAKEUP_PIN, and port_pin_get_input_level().
Referenced by platform_enter_sleep(), and platform_gpio_set().
void platform_host_wake_interrupt_handler | ( | void | ) |
References ble_wakeup_pin_set_high().
Referenced by btlc1000_host_wakeup_handler().
void serial_rx_callback | ( | void | ) |
void serial_tx_callback | ( | void | ) |