board/sweetberry/board.c: Format with clang-format
BRANCH=none
TEST=none
@@ -59,38 +59,33 @@ struct dwc_usb usb_ctl = {
/* I2C ports */
const struct i2c_port_t i2c_ports[] = {
- {
- .name = "i2c1",
+ { .name = "i2c1",
.port = I2C_PORT_0,
.kbps = 400,
.scl = GPIO_I2C1_SCL,
- .sda = GPIO_I2C1_SDA
- },
- {
- .name = "i2c2",
+ .sda = GPIO_I2C1_SDA },
+ { .name = "i2c2",
.port = I2C_PORT_1,
.kbps = 400,
.scl = GPIO_I2C2_SCL,
- .sda = GPIO_I2C2_SDA
- },
- {
- .name = "i2c3",
+ .sda = GPIO_I2C2_SDA },
+ { .name = "i2c3",
.port = I2C_PORT_2,
.kbps = 400,
.scl = GPIO_I2C3_SCL,
- .sda = GPIO_I2C3_SDA
- },
- {
- .name = "fmpi2c4",
+ .sda = GPIO_I2C3_SDA },
+ { .name = "fmpi2c4",
.port = FMPI2C_PORT_3,
.kbps = 900,
.scl = GPIO_FMPI2C_SCL,
- .sda = GPIO_FMPI2C_SDA
- },
+ .sda = GPIO_FMPI2C_SDA },
};
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
-int usb_i2c_board_is_enabled(void) { return 1; }
+int usb_i2c_board_is_enabled(void)
+{
+ return 1;
+}
#define GPIO_SET_HS(bank, number) \
(STM32_GPIO_OSPEEDR(GPIO_##bank) |= (0x3 << ((number)*2)))
