/*!
 * @file        user_I2C_config.c
 *
 * @brief       I2C 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.
 */

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

/** @addtogroup Examples
  @{
  */

/** @addtogroup I2C_Examples
  @{
  */

/** @addtogroup GPIO_I2C_SLAVE
  @{
*/

/** @defgroup GPIO_I2C_SALVE_Variables Variables
  @{
*/

/* Configure SDA gpio pin */
Gpio_ConfigType g_sdaGpioConfig = {
    .pin = (uint16_t)I2C_SLAVE_SDA_PIN,
    .mode = GPIO_MODE_OUT,
    /* General purpose output Open-drain, can not pull up */
    .outtype = GPIO_OUT_TYPE_OD,
    .speed = GPIO_SPEED_50MHz,
    /* no pull mode */
    .pupd = GPIO_PUPD_NO,
};

/* Configure SCL gpio pin */
Gpio_ConfigType g_sclGpioConfig = {
    .pin = (uint16_t)I2C_SLAVE_SCL_PIN,
    .mode = GPIO_MODE_IN,
    .outtype = GPIO_OUT_TYPE_PP,
    .speed = GPIO_SPEED_50MHz,
    /* no pull mode */
    .pupd = GPIO_PUPD_NO,
};



/**@} end of group GPIO_I2C_SALVE_Variables */
/**@} end of group GPIO_I2C_SLAVE */
/**@} end of group I2C_Examples */
/**@} end of group Examples */
