generated from hulk/gd32e23x_template
22 lines
536 B
C
22 lines
536 B
C
//
|
|
// Created by dell on 24-12-28.
|
|
//
|
|
|
|
#ifndef BOARD_CONFIG_H
|
|
#define BOARD_CONFIG_H
|
|
|
|
/******************************************************************************/
|
|
|
|
#define I2C_SPEED 20000
|
|
#define RCU_GPIO_I2C RCU_GPIOF
|
|
#define RCU_I2C RCU_I2C0
|
|
#define I2C_SCL_PORT GPIOF
|
|
#define I2C_SCL_PIN GPIO_PIN_1
|
|
#define I2C_SDA_PORT GPIOF
|
|
#define I2C_SDA_PIN GPIO_PIN_0
|
|
#define I2C_GPIO_AF GPIO_AF_1
|
|
|
|
/******************************************************************************/
|
|
|
|
#endif //BOARD_CONFIG_H
|