/*!
* @file     Dio_Cfg.h
*
* @version  1.0.0
*
* @brief    This file includes the configuration parameters of the Dio module.
*
* @attention
*
* Project Name      : AUTOSAR MCAL
*
* Platform          : Arm
*
* Autosar Standard  : Classic Platform 4.4.0
*
* Compiled Version  : G32A10xx_MCAL_1_0_0_01-Otc-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 usefull 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 DIO_CFG_H
#define DIO_CFG_H

#ifdef __cplusplus
extern "C" {
#endif  /* ifdef __cplusplus */

#include "Mcal.h"
#include "StdRegMacros.h"

/** @addtogroup G32A10xx_StdPeriphDriver
  @{
*/

/** @defgroup DIO_Driver
  @{
*/

/** @defgroup DIO_Macros
  @{
*/
/*******************************************************************************
                        VENDOR ID & AUTOSAR VERSION INFO
*******************************************************************************/
/** Vendor ID (vendorId) of the dedicated implementation of this module according to the AUTOSAR vendor list. */
#define DIO_CFG_H_VENDOR_ID                        0x00C1U
/** Module ID of this module, as defined in the BSW Module List. */
#define DIO_CFG_H_MODULE_ID                        0x0065U
/** Major version number of AUTOSAR release on which the appropriate implementation is based on. */
#define DIO_CFG_H_AR_RELEASE_MAJOR_VERSION         0x04U
/** Minor version number of AUTOSAR release on which the appropriate implementation is based on. */
#define DIO_CFG_H_AR_RELEASE_MINOR_VERSION         0x04U
/** Revision version number of AUTOSAR release on which the appropriate implementation is based on. */
#define DIO_CFG_H_AR_RELEASE_REVISION_VERSION      0x00U
/** Major version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define DIO_CFG_H_SW_MAJOR_VERSION                 0x01U
/** Minor version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define DIO_CFG_H_SW_MINOR_VERSION                 0x00U
/** Patch level version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define DIO_CFG_H_SW_PATCH_VERSION                 0x00U

/*******************************************************************************
                                MACRO DEFINITION
*******************************************************************************/
/** The dio channel max value. */
#define DIO_CHANNLE_MAX     ((uint8)55)

/** The dio port max value. */
#define DIO_PORT_MAX        ((uint8)5)

/** The dio channel group num. */
#define DIO_CHANNEL_GROUP_NUM        ((uint8)2)

/** Enable/disable the Dio_FlipChannel().*/
#define DIO_FLIP_CHANNEL_API           (STD_ON)

/** Enable/disable Dio_GetVersionInfo API */
#define DIO_VERINFO_API                (STD_ON)

/** Enable/disable development error detection */
#define DIO_DEV_ERR_DETECT_ENABLE      (STD_OFF)

/** The symbolic name of the port DioPort_B. */
#define DioConfig_DioPort_DioPort_B                   (DIO_PORT_B)

/** The symbolic name of the channel DioChannel_B13. */
#define DioConfig_DioChannel_DioChannel_B13           (DIO_PORT_B_PIN_13)

/** The symbolic name of the channel DioChannel_B14. */
#define DioConfig_DioChannel_DioChannel_B14           (DIO_PORT_B_PIN_14)

/** The symbolic name of the channel group DioChannelGroup_0. */
#define DioConfig_DioChannelGroup_DioChannelGroup_0   (&g_DioConfigChannelGroupList[0])

/* Port A */
#define DIO_PORT_A          ((uint8)0x00U)
#define DIO_PORT_A_PIN_0    ((uint16)0x00000U)
#define DIO_PORT_A_PIN_1    ((uint16)0x00001U)
#define DIO_PORT_A_PIN_2    ((uint16)0x00002U)
#define DIO_PORT_A_PIN_3    ((uint16)0x00003U)
#define DIO_PORT_A_PIN_4    ((uint16)0x00004U)
#define DIO_PORT_A_PIN_5    ((uint16)0x00005U)
#define DIO_PORT_A_PIN_6    ((uint16)0x00006U)
#define DIO_PORT_A_PIN_7    ((uint16)0x00007U)
#define DIO_PORT_A_PIN_8    ((uint16)0x00008U)
#define DIO_PORT_A_PIN_9    ((uint16)0x00009U)
#define DIO_PORT_A_PIN_10   ((uint16)0x0000AU)
#define DIO_PORT_A_PIN_11   ((uint16)0x0000BU)
#define DIO_PORT_A_PIN_12   ((uint16)0x0000CU)
#define DIO_PORT_A_PIN_13   ((uint16)0x0000DU)  
#define DIO_PORT_A_PIN_14   ((uint16)0x0000EU)
#define DIO_PORT_A_PIN_15   ((uint16)0x0000FU)
/* Port B */
#define DIO_PORT_B          ((uint8)0x01U)
#define DIO_PORT_B_PIN_0    ((uint16)0x00020U)
#define DIO_PORT_B_PIN_1    ((uint16)0x00021U)
#define DIO_PORT_B_PIN_2    ((uint16)0x00022U)
#define DIO_PORT_B_PIN_3    ((uint16)0x00023U)
#define DIO_PORT_B_PIN_4    ((uint16)0x00024U)
#define DIO_PORT_B_PIN_5    ((uint16)0x00025U)
#define DIO_PORT_B_PIN_6    ((uint16)0x00026U)
#define DIO_PORT_B_PIN_7    ((uint16)0x00027U)
#define DIO_PORT_B_PIN_8    ((uint16)0x00028U)
#define DIO_PORT_B_PIN_9    ((uint16)0x00029U)
#define DIO_PORT_B_PIN_10   ((uint16)0x0002AU)
#define DIO_PORT_B_PIN_11   ((uint16)0x0002BU)
#define DIO_PORT_B_PIN_12   ((uint16)0x0002CU)
#define DIO_PORT_B_PIN_13   ((uint16)0x0002DU)
#define DIO_PORT_B_PIN_14   ((uint16)0x0002EU)
#define DIO_PORT_B_PIN_15   ((uint16)0x0002FU)
/* Port C */
#define DIO_PORT_C          ((uint8)0x02U)
#define DIO_PORT_C_PIN_0    ((uint16)0x00040U)
#define DIO_PORT_C_PIN_1    ((uint16)0x00041U)
#define DIO_PORT_C_PIN_2    ((uint16)0x00042U)
#define DIO_PORT_C_PIN_3    ((uint16)0x00043U)
#define DIO_PORT_C_PIN_4    ((uint16)0x00044U)
#define DIO_PORT_C_PIN_5    ((uint16)0x00045U)
#define DIO_PORT_C_PIN_6    ((uint16)0x00046U)
#define DIO_PORT_C_PIN_7    ((uint16)0x00047U)
#define DIO_PORT_C_PIN_8    ((uint16)0x00048U)
#define DIO_PORT_C_PIN_9    ((uint16)0x00049U)
#define DIO_PORT_C_PIN_10   ((uint16)0x0004AU)
#define DIO_PORT_C_PIN_11   ((uint16)0x0004BU)
#define DIO_PORT_C_PIN_12   ((uint16)0x0004CU)
#define DIO_PORT_C_PIN_13   ((uint16)0x0004DU)
#define DIO_PORT_C_PIN_14   ((uint16)0x0004EU)
#define DIO_PORT_C_PIN_15   ((uint16)0x0004FU)
/* Port D */
#define DIO_PORT_D          ((uint8)0x03U)
#define DIO_PORT_D_PIN_2    ((uint16)0x00062U)
/* Port F */
#define DIO_PORT_F          ((uint8)0x05U)
#define DIO_PORT_F_PIN_0    ((uint16)0x000A0U)
#define DIO_PORT_F_PIN_1    ((uint16)0x000A1U)
#define DIO_PORT_F_PIN_4    ((uint16)0x000A4U)
#define DIO_PORT_F_PIN_5    ((uint16)0x000A5U)
#define DIO_PORT_F_PIN_6    ((uint16)0x000A6U)
#define DIO_PORT_F_PIN_7    ((uint16)0x000A7U)

/**@} end of group DIO_Macros */

#ifdef __cplusplus
}
#endif  /* __cplusplus */

#endif

/**@} end of group DIO_Driver */
/**@} end of group G32A10xx_StdPeriphDriver */
