text: /***************************************************************************//**
   * @file
   * @brief Configuration header for bootloader euart Driver
   *******************************************************************************
   * # License
   * <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
   *******************************************************************************
   *
   * The licensor of this software is Silicon Laboratories Inc.  Your use of this
   * software is governed by the terms of Silicon Labs Master Software License
   * Agreement (MSLA) available at
   * www.silabs.com/about-us/legal/master-software-license-agreement.  This
   * software is distributed to you in Source Code format and is governed by the
   * sections of the MSLA applicable to Source Code.
   *
   ******************************************************************************/
  #ifndef BTL_EUART_DRIVER_CONFIG_H
  #define BTL_EUART_DRIVER_CONFIG_H
  
  // <<< Use Configuration Wizard in Context Menu >>>
  
  // <h>EUART settings
  
  // <o SL_SERIAL_EUART_BAUD_RATE> Baud rate
  // <i> Default: 115200
  #define SL_SERIAL_EUART_BAUD_RATE              115200
  
  // <e SL_SERIAL_EUART_FLOW_CONTROL> Hardware flow control
  // <i> Default: 0
  #define SL_SERIAL_EUART_FLOW_CONTROL     0
  // </e>
  
  // <o SL_DRIVER_EUART_RX_BUFFER_SIZE> Receive buffer size
  // <0-2048:1>
  // <i> Default: 512 [0-2048]
  #define SL_DRIVER_EUART_RX_BUFFER_SIZE    512
  
  // <o SL_DRIVER_EUART_TX_BUFFER_SIZE> Transmit buffer size
  // <0-2048:1>
  // <i> Default: 128 [0-2048]
  #define SL_DRIVER_EUART_TX_BUFFER_SIZE    128
  
  // <e SL_VCOM_ENABLE> Virtual COM Port
  // <i> Default: 0
  #define SL_VCOM_ENABLE                    0
  // </e>
  
  // </h>
  
  // <<< end of configuration section >>>
  
  // <<< sl:start pin_tool >>>
  // <eusart signal=TX,RX,(CTS),(RTS)> SL_SERIAL_EUART
  // $[EUSART_SL_SERIAL_EUART]
  #define SL_SERIAL_EUART_PERIPHERAL               EUART0
  #define SL_SERIAL_EUART_PERIPHERAL_NO            0
  
  // EUART0 TX on PA05
  #define SL_SERIAL_EUART_TX_PORT                  gpioPortA
  #define SL_SERIAL_EUART_TX_PIN                   5
  
  // EUART0 RX on PA06
  #define SL_SERIAL_EUART_RX_PORT                  gpioPortA
  #define SL_SERIAL_EUART_RX_PIN                   6
  
  // EUART0 CTS on PA04
  #define SL_SERIAL_EUART_CTS_PORT                 gpioPortA
  #define SL_SERIAL_EUART_CTS_PIN                  4
  
  // EUART0 RTS on PA00
  #define SL_SERIAL_EUART_RTS_PORT                 gpioPortA
  #define SL_SERIAL_EUART_RTS_PIN                  0
  
  // [EUSART_SL_SERIAL_EUART]$
  
  
  // <gpio optional=true> SL_VCOM_ENABLE
  
  // $[GPIO_SL_VCOM_ENABLE]
  #define SL_VCOM_ENABLE_PORT                      gpioPortC
  #define SL_VCOM_ENABLE_PIN                       3
  
  // [GPIO_SL_VCOM_ENABLE]$
  
  
  // <<< sl:end pin_tool >>>
  
  #endif // BTL_EUART_DRIVER_CONFIG_H