/**
  * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
  *
  * SPDX-License-Identifier: Apache-2.0
  ******************************************************************************
  * @file    drv_i2c.h
  * @author  David Wu
  * @date    11-Jun-2019
  * @brief   i2c driver
  *
  ******************************************************************************
  */

#ifndef _DRV_I2C_H_
#define _DRV_I2C_H_

/*******************************************************************************
 * Included Files
 ******************************************************************************/

#include <rtdevice.h>

#ifdef RT_USING_I2C

#include "hal_base.h"

/*******************************************************************************
 * Pre-processor Definitions
 ******************************************************************************/

/*******************************************************************************
 * Public Types
 ******************************************************************************/

struct I2C_REG;

/* I2C consumer config data. */
struct rockchip_i2c_config
{
    struct I2C_REG *id;
    eI2C_BusSpeed speed;
};

/*******************************************************************************
 * Public Data
 ******************************************************************************/

extern const struct rockchip_i2c_config rockchip_i2c_config_table[];

/*******************************************************************************
 * Inline Functions
 ******************************************************************************/

/*******************************************************************************
 * Public Functions
 ******************************************************************************/

#endif
#endif /* _DRV_I2C_H_ */
