SAM4S serial driver configuration.
Copyright (c) 2017-2019 Microchip Technology Inc. and its subsidiaries.
#define BLE_MAX_RX_PAYLOAD_SIZE 1024 |
Referenced by configure_primary_uart(), and pdc_update_rx_transfer().
#define BLE_MAX_TX_PAYLOAD_SIZE 1024 |
#define BLE_UART EXT1_UART_MODULE |
UART Interface.
Referenced by ble_pdc_send_data(), ble_pdc_uart_handler(), configure_primary_uart(), platform_set_ble_rts_high(), and platform_set_ble_rts_low().
#define BLE_UART_Handler USART1_Handler |
#define BLE_UART_ID ID_USART1 |
Referenced by configure_primary_uart().
#define BLE_UART_IRQn USART1_IRQn |
Referenced by configure_primary_uart().
#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_BACKUP_INPUT_ID (1u << 1) |
#define BTLC1000_HOST_WAKEUP_PIN (EXT1_PIN_9) |
BTLC1000 Host Wakeup Control.
Referenced by host_event_data_ready_pin_level().
#define BTLC1000_HOST_WAKEUP_WAIT_INPUT_ID (1u << 1) |
#define BTLC1000_RESET_MS (50) |
#define BTLC1000_UART_CTS_PIN (EXT1_PIN_5) |
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_UART_BAUDRATE (115200UL) |
Baudrate setting.
Referenced by platform_init(), and serial_console_init().
#define CONF_UART_CHAR_LENGTH US_MR_CHRL_8_BIT |
Character length setting.
Referenced by serial_console_init().
#define CONF_UART_PARITY US_MR_PAR_NO |
Parity setting.
Referenced by serial_console_init().
#define CONF_UART_STOP_BITS US_MR_NBSTOP_1_BIT |
Stop bits setting.
Referenced by serial_console_init().
#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 PIN_BTLC1000_HOST_WAKEUP_ATTR PIO_DEFAULT |
Referenced by btlc1000_host_wakeup_config().
#define PIN_BTLC1000_HOST_WAKEUP_ID ID_PIOA |
Referenced by btlc1000_host_wakeup_config(), and btlc1000_host_wakeup_handler().
#define PIN_BTLC1000_HOST_WAKEUP_MASK PIO_PA1 |
Referenced by btlc1000_host_wakeup_config(), and btlc1000_host_wakeup_handler().
#define PIN_BTLC1000_HOST_WAKEUP_PIO PIOA |
Referenced by btlc1000_host_wakeup_config().
#define RX_TIMEOUT_VALUE 35 |
Referenced by configure_primary_uart().
#define SERIAL_DRV_RX_CB plaform_ble_rx_callback |
Referenced by ble_pdc_uart_handler().
#define SERIAL_DRV_RX_CB_ENABLE true |
#define SERIAL_DRV_TX_CB NULL |
#define SERIAL_DRV_TX_CB_ENABLE false |
|
inlinestatic |
References BTLC1000_CHIP_ENABLE_PIN, BTLC1000_WAKEUP_PIN, delay_init, IOPORT_DIR_OUTPUT, ioport_enable_pin(), ioport_init(), ioport_reset_pin_mode(), and ioport_set_pin_dir().
Referenced by platform_init().
|
inlinestatic |
References BTLC1000_CHIP_ENABLE_PIN, IOPORT_PIN_LEVEL_HIGH, and ioport_set_pin_level().
Referenced by platform_gpio_set().
|
inlinestatic |
References BTLC1000_CHIP_ENABLE_PIN, IOPORT_PIN_LEVEL_LOW, and ioport_set_pin_level().
Referenced by platform_gpio_set().
|
inlinestatic |
References BTLC1000_WAKEUP_PIN, and ioport_get_pin_level().
Referenced by platform_enter_sleep(), and platform_wakeup_pin_status().
|
inlinestatic |
References BTLC1000_WAKEUP_PIN, IOPORT_PIN_LEVEL_HIGH, and ioport_set_pin_level().
Referenced by plaform_ble_rx_callback(), platform_gpio_set(), platform_host_wake_interrupt_handler(), and platform_send_sync().
|
inlinestatic |
References BTLC1000_WAKEUP_PIN, IOPORT_PIN_LEVEL_LOW, and ioport_set_pin_level().
Referenced by platform_gpio_set().
|
inlinestatic |
References BTLC1000_UART_CTS_PIN, and ioport_get_pin_level().
|
inlinestatic |
|
inlinestatic |
Handler for button interrupt.
References PIN_BTLC1000_HOST_WAKEUP_ID, PIN_BTLC1000_HOST_WAKEUP_MASK, and platform_host_wake_interrupt_handler().
Referenced by btlc1000_host_wakeup_config().
|
inlinestatic |
References BTLC1000_HOST_WAKEUP_PIN, and ioport_get_pin_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().