/*!
* @file    CDD_Usart_Cfg.h
*
* @version  1.0.0
*
* @brief    Header file of AUTOSAR USART driver.
*
* @details  This file contains the definitions of USART peripheral driver used.
*
*/

/*******************************************************************************
 * Project Name      : AUTOSAR MCAL
 * Platform          : Arm
 * Autosar Standard  : Classic Platform 4.4.0
 * Revision Number   :
 * Compiled Version  : G32A10xx_MCAL_1_0_0_30-April-25
 *
 * 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 CDD_USART_CFG_H
#define CDD_USART_CFG_H

#ifdef __cplusplus
extern "C"{
#endif

#include "stdint.h"
#include "StdRegMacros.h"
/*******************************************************************************
                  VENDOR ID & AUTOSAR VERSION INFO
*******************************************************************************/
/** Vendor ID (vendorId) of the dedicated implementation of this module according to the AUTOSAR vendor list. */
#define USART_CFG_H_VENDOR_ID                        0x00C1U
/** Major version number of AUTOSAR release on which the appropriate implementation is based on. */
#define USART_CFG_H_AR_RELEASE_MAJOR_VERSION         0x04U
/** Minor version number of AUTOSAR release on which the appropriate implementation is based on. */
#define USART_CFG_H_AR_RELEASE_MINOR_VERSION         0x04U
/** Revision version number of AUTOSAR release on which the appropriate implementation is based on. */
#define USART_CFG_H_AR_RELEASE_REVISION_VERSION      0x00U
/** Major version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define USART_CFG_H_SW_MAJOR_VERSION                 0x01U
/** Minor version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define USART_CFG_H_SW_MINOR_VERSION                 0x00U
/** Patch level version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define USART_CFG_H_SW_PATCH_VERSION                 0x00U

/**************************************************************************
                    ENUMERATION DEFINITION
**************************************************************************/
/** The interrupt of USART1 configured for UART */
#define USART1_ENABLE                   (STD_ON)
#if (STD_ON == USART1_ENABLE)
    #define USART1_IRQ_ENABLE           (STD_ON)
#endif

/** The interrupt of USART2 configured for UART */
#define USART2_ENABLE                   (STD_ON)
#if (STD_ON == USART2_ENABLE)
    #define USART2_IRQ_ENABLE           (STD_ON)
#endif

#define USART_CHANNEL_NUM               2

#define TXBE_POLLING_TIMEOUT            (uint32)65535

#define USART_DEV_ERR_DETECT_ENABLE     (STD_OFF)

/** Switch the DMA status on or off */
#define USART_DMA_SUPPORT               (STD_ON)

#ifdef __cplusplus
}
#endif

#endif /* USART_CFG_H */

