SAM D21 Console configuration.
Copyright (c) 2019 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | CONF_STDIO_BAUDRATE 115200 |
#define | CONF_STDIO_MUX_SETTING EDBG_CDC_SERCOM_MUX_SETTING |
#define | CONF_STDIO_PINMUX_PAD0 EDBG_CDC_SERCOM_PINMUX_PAD0 |
#define | CONF_STDIO_PINMUX_PAD1 EDBG_CDC_SERCOM_PINMUX_PAD1 |
#define | CONF_STDIO_PINMUX_PAD2 EDBG_CDC_SERCOM_PINMUX_PAD2 |
#define | CONF_STDIO_PINMUX_PAD3 EDBG_CDC_SERCOM_PINMUX_PAD3 |
#define | CONF_STDIO_USART_MODULE EDBG_CDC_MODULE |
Functions | |
static void | configure_console (void) |
Configure UART console. More... | |
Variables | |
static struct usart_module | cdc_uart_module |
UART module for debug. More... | |
#define CONF_STDIO_BAUDRATE 115200 |
Referenced by cdc_uart_init(), configure_console(), main(), and serial_console_init().
#define CONF_STDIO_MUX_SETTING EDBG_CDC_SERCOM_MUX_SETTING |
Referenced by cdc_uart_init(), configure_console(), main(), and serial_console_init().
#define CONF_STDIO_PINMUX_PAD0 EDBG_CDC_SERCOM_PINMUX_PAD0 |
Referenced by cdc_uart_init(), configure_console(), main(), and serial_console_init().
#define CONF_STDIO_PINMUX_PAD1 EDBG_CDC_SERCOM_PINMUX_PAD1 |
Referenced by cdc_uart_init(), configure_console(), main(), and serial_console_init().
#define CONF_STDIO_PINMUX_PAD2 EDBG_CDC_SERCOM_PINMUX_PAD2 |
Referenced by cdc_uart_init(), configure_console(), main(), and serial_console_init().
#define CONF_STDIO_PINMUX_PAD3 EDBG_CDC_SERCOM_PINMUX_PAD3 |
Referenced by cdc_uart_init(), configure_console(), main(), and serial_console_init().
#define CONF_STDIO_USART_MODULE EDBG_CDC_MODULE |
Referenced by cdc_uart_init(), configure_console(), and serial_console_init().
|
inlinestatic |
Configure UART console.
References usart_config::baudrate, cdc_uart_module, CONF_STDIO_BAUDRATE, CONF_STDIO_MUX_SETTING, CONF_STDIO_PINMUX_PAD0, CONF_STDIO_PINMUX_PAD1, CONF_STDIO_PINMUX_PAD2, CONF_STDIO_PINMUX_PAD3, CONF_STDIO_USART_MODULE, usart_config::mux_setting, usart_config::pinmux_pad0, usart_config::pinmux_pad1, usart_config::pinmux_pad2, usart_config::pinmux_pad3, usart_enable(), and usart_get_config_defaults().
|
static |
UART module for debug.