Sergey Vlasov
0dee334bce
handwired/onekey/blackpill_f401: Fix I2C pin config mismatch ( #10322 )
...
By default the `i2c_master` driver for ChibiOS uses the B6 pin for
`I2C1_SCL` and the B7 pin for `I2C1_SDA`. However, the ChibiOS board
file used for the F401 Blackpill board (`ST_STM32F401C_DISCOVERY`)
configures B6 as `I2C1_SCL` and B9 as `I2C1_SDA`, and if that
configuration is left unchanged, enabling the `i2c_master` driver
results in having two pins (B7 and B9) configured as `I2C1_SDA` at the
same time, which does not work properly (experimental results show that
the B9 pin still works as `I2C1_SDA` in that case, and the B7 pin does
not work).
Configure the B9 pin as an input with pull-up in `board_init()`, so that
the B7 pin can be configured as `I2C1_SDA` by the I2C driver.
2020-11-12 20:00:35 +11:00
..
2020-09-24 02:35:14 +00:00
2020-09-07 22:28:18 -07:00
2020-10-25 15:23:42 +00:00
2020-09-07 22:28:18 -07:00
2020-09-07 22:28:18 -07:00
2020-10-25 15:23:42 +00:00
2020-09-07 22:28:18 -07:00
2020-07-09 20:18:51 +01:00
2020-09-07 22:28:18 -07:00
2020-08-18 13:45:33 -07:00
2020-08-29 14:30:02 -07:00
2020-07-08 06:33:43 -07:00
2020-06-28 12:07:57 +01:00
2020-10-25 15:23:42 +00:00
2020-09-07 22:28:18 -07:00
2020-09-07 22:28:18 -07:00
2020-09-22 00:33:39 -07:00
2020-10-25 15:23:42 +00:00
2020-09-07 22:28:18 -07:00
2020-10-04 12:24:35 -07:00
2020-09-07 22:28:18 -07:00
2020-09-07 22:28:18 -07:00
2020-10-24 16:54:38 -07:00
2020-09-07 22:28:18 -07:00
2020-09-07 22:28:18 -07:00
2020-09-07 22:28:18 -07:00
2020-09-07 22:28:18 -07:00
2020-10-30 13:29:19 +00:00
2020-09-07 22:28:18 -07:00
2020-06-24 23:08:24 -07:00
2020-09-07 22:28:18 -07:00
2020-06-05 02:13:31 -07:00
2020-10-25 15:23:42 +00:00
2020-06-30 17:53:24 +01:00
2020-07-30 11:08:17 -07:00
2020-10-07 15:35:42 -07:00
2020-06-30 17:53:24 +01:00
2020-06-15 03:06:10 -07:00
2020-09-07 22:28:18 -07:00
2020-09-07 22:28:18 -07:00
2020-06-15 03:06:10 -07:00
2020-09-07 22:28:18 -07:00
2020-11-12 20:00:35 +11:00
2020-09-07 22:28:18 -07:00
2020-09-07 22:28:18 -07:00
2020-09-07 22:28:18 -07:00
2020-09-07 22:28:18 -07:00
2020-09-07 22:28:18 -07:00
2020-09-07 22:28:18 -07:00
2020-08-29 14:30:02 -07:00
2020-08-22 12:59:24 -07:00
2020-08-26 01:12:19 -07:00
2020-10-23 14:31:24 -07:00
2020-10-25 15:23:42 +00:00
2020-10-08 10:20:23 +11:00
2020-11-02 21:20:22 +00:00
2020-10-25 15:23:42 +00:00
2020-08-07 13:31:22 -07:00
2020-09-07 22:28:18 -07:00
2020-09-28 21:25:53 -07:00
2020-09-07 22:28:18 -07:00
2020-09-07 22:28:18 -07:00
2020-07-31 16:18:06 -07:00
2020-11-01 10:57:30 -08:00
2020-09-07 22:28:18 -07:00
2020-10-13 03:19:50 +11:00
2020-09-07 22:28:18 -07:00
2020-09-07 22:28:18 -07:00
2020-06-29 16:32:59 -07:00
2020-10-25 15:23:42 +00:00
2020-08-16 18:33:20 -07:00
2020-06-15 03:06:10 -07:00
2020-10-25 15:23:42 +00:00
2020-10-25 15:23:42 +00:00
2020-10-13 03:19:50 +11:00
2020-10-13 04:16:10 -07:00