aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/stm32f0_i2c.c
Commit message (Collapse)AuthorAgeFilesLines
* stm32: f0 do not send empty write on readTimofey Titovets2025-07-091-9/+11
| | | | Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* stm32: f0 make i2c distinguish I2C NACKsTimofey Titovets2025-07-091-1/+11
| | | | | | | | | | Some devices can return a read NACK on host retries. When the MCU receives the I2C CMD, reads out data, but fails to deliver a response to the host. The host retries, the device returns NACK, and the MCU goes into the shutdown state. Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* stm32: Use 12Mhz nominal internal clock in stm32f0_i2c.cKevin O'Connor2025-05-021-9/+9
| | | | | | | Increase the internal nominal clock from 8Mhz to 12Mhz - this improves support for higher chip frequencies. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: forward i2c errors to i2ccmdTimofey Titovets2024-10-261-13/+23
| | | | Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* i2c: handle errors at i2ccmdsTimofey Titovets2024-10-261-2/+7
| | | | Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* stm32: allow 400Khz in stm32f0_i2c.c (#6694)Timofey Titovets2024-10-091-0/+7
| | | Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* stm32: Fix i2c clock speeds for chips with a peripheral clock over 48MhzKevin O'Connor2024-09-221-5/+13
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* STM32: Check for NACK (#6687)Timofey Titovets2024-09-221-0/+2
| | | Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* stm32: STM32F031 updates (#6607)Elias Bakken2024-05-251-0/+3
| | | | | | | Add support for STM32F031x6 which is the 32 KB version of the STM32F031 MCU. Add new I2C bus variant. Signed-off by: Elias Bakken <elias@iagent.no>
* stm32: Add i2c3 bus to STM32H7 (#6541)FOG_Yamato2024-04-021-0/+3
| | | Signed-off-by: Balanuta Simion <simion@fogyamato.dev>
* stm32: Add i2c3_PC0_PC1 for stm32g0 (#6529)BIGTREETECH2024-03-151-0/+3
| | | Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
* stm32f7: add support for stm32f7 and remram boardFrederic Morin2023-05-071-0/+5
| | | | Signed-off-by: Frederic Morin <frederic.morin.8@gmail.com>
* stm32: Enable I2C on stm32h7 (#6130)BIGTREETECH2023-03-271-0/+11
| | | Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
* stm32: Reindent ifdefs in stm32f0_i2c.cKevin O'Connor2023-01-031-56/+55
| | | | | | A whitespace and comment change only - no functional changes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Expand stm32g0 family (#5838)Alex Voinea2023-01-031-22/+33
| | | | | Add stm32g07x family support. Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
* stm32g4: implement build,usb,can,i2c,spi,serial,adc.Matt Baker2022-12-021-0/+27
| | | | Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
* stm32l4: add stm32l412 support with adc,i2c,spi,usbMatt Baker2022-09-151-8/+21
| | | | Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
* stm32: Fix i2c on stm32g0Kevin O'Connor2022-09-111-0/+32
| | | | | | Fix the gpio function. Also, add buses found only on stm32g0. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32f0: implement i2c_read endpointMatt Baker2022-09-011-1/+20
| | | | Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
* stm32f0: Initial support for i2c on stm32f0Kevin O'Connor2019-11-141-0/+88
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>