/*!
 * @file        user_usart_config.h
 *
 * @brief       USART configurations
 *
 * @version     V1.0.0
 *
 * @date        2026-03-25
 *
 * @attention
 *
 *  Copyright (C) 2026 Geehy Semiconductor
 *
 *  You may not use this file except in compliance with the
 *  GEEHY COPYRIGHT NOTICE (Geehy Semiconductor Software License Agreement).
 *
 *  The program is only for reference, which is distributed in the hope
 *  that it will be useful and instructional for customers to develop
 *  their software. Unless required by applicable law or agreed to in
 *  writing, the program is distributed on an "AS IS" BASIS, WITHOUT
 *  ANY WARRANTY OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the Geehy Semiconductor Software License Agreement for the governing permissions
 *  and limitations under the License.
 */

#ifndef USER_USART_CONFIG_H
#define USER_USART_CONFIG_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes */
#include "g32a10xx_usart.h"

/** @addtogroup Examples 
  @{
*/

/** @addtogroup USART_Examples 
  @{
*/

/** @addtogroup USART_Polling
  @{
*/

/** @defgroup USART_Polling_INT_Macros INT_Macros
  @{
*/

/* The USART2 Tx, Rx PIN */
#define USASRT2_TX_PIN                      GPIO_PIN_2
#define USASRT2_TX_GPIO_PORT                GPIOA
#define USASRT2_TX_GPIO_CLK                 RCM_AHB_PERIPH_GPIOA
#define USASRT2_TX_PIN_SOURCE               GPIO_PIN_SOURCE_2
#define USASRT2_TX_AF                       GPIO_AF_PIN1

#define USASRT2_RX_PIN                      GPIO_PIN_3
#define USASRT2_RX_GPIO_PORT                GPIOA
#define USASRT2_RX_GPIO_CLK                 RCM_AHB_PERIPH_GPIOA
#define USASRT2_RX_PIN_SOURCE               GPIO_PIN_SOURCE_3
#define USASRT2_RX_AF                       GPIO_AF_PIN1

/**@} end of group USART_Polling_INT_Macros */

/** @defgroup USART_Polling_INT_Variables INT_Variables
  @{
*/

/* USART user configuration */
extern Usart_ConfigType g_usart2Config;

#ifdef __cplusplus
}
#endif

#endif /* USER_DMA_CONFIG_H */

/**@} end of group USART_Polling_INT_Variables */
/**@} end of group USART_Polling*/
/**@} end of group USART_Examples*/
/**@} end of group Examples*/
