Microchip® Advanced Software Framework

provision_and_battery_example/console.h File Reference

SAM D21 Console configuration.

Copyright (c) 2017-2019 Microchip Technology Inc. and its subsidiaries.

#include <asf.h>
#include <string.h>
#include "stdio_serial.h"

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 configure_console().

#define CONF_STDIO_MUX_SETTING   EDBG_CDC_SERCOM_MUX_SETTING

Referenced by configure_console().

#define CONF_STDIO_PINMUX_PAD0   EDBG_CDC_SERCOM_PINMUX_PAD0

Referenced by configure_console().

#define CONF_STDIO_PINMUX_PAD1   EDBG_CDC_SERCOM_PINMUX_PAD1

Referenced by configure_console().

#define CONF_STDIO_PINMUX_PAD2   EDBG_CDC_SERCOM_PINMUX_PAD2

Referenced by configure_console().

#define CONF_STDIO_PINMUX_PAD3   EDBG_CDC_SERCOM_PINMUX_PAD3

Referenced by configure_console().

#define CONF_STDIO_USART_MODULE   EDBG_CDC_MODULE

Referenced by configure_console().

struct usart_module cdc_uart_module
static

UART module for debug.