Commit Graph

6 Commits (22b2e9f800409f4eb341e7c171e91a3982a44985)

Author SHA1 Message Date
Affrin Pinhero d8cbd68dc2 driver/i2c: STM32: Solves I2C driver performanc issue.
This commit solves issue related to i2c driver performance.
With this commit delay in read write when using i2c timing
algorithm is solved. Used flag mechanism which will check
tim reg value and hz passed.

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-07-02 10:54:16 +05:30
Affrin Pinhero 8f24f09df7 driver/i2c: STM32: Solves excess memory usage issue.
This commit solves excess usage of RAM. User can now enable/disable
I2C timing algorithm. Disabling of I2C timing algorithm would
reduce RAM usage.

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-06-28 18:13:02 +05:30
jeromecoutant 81dc8f8605 STM32: correct __cplusplus brackets in ci2c_device.h 2021-05-24 14:47:05 +02:00
Affrin Pinhero d974b47439 driver/i2c: Added I2C timing calculation function.
This commit adds I2C timing value automatic calculation algorithm
for all supported families added. This patch improves I2C timing calculation
according to I2C input clock and I2C bus speed.
This commit also allows user to change the system clock and I2C input clock.

Related issue: #12907

Pull request type:
[x] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results:
[] No Tests required for this change (E.g docs only update)
[x] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
2021-05-19 18:35:47 +05:30
jeromecoutant 4550f92565 STM32WL : I2C full support 2021-02-08 17:19:05 +01:00
reme 91e7676cc4 STM32WL : ADDING STM32WL SUPPORT
Add code concerning all STM32WL platforms
- STM32 Cube Firmware

Update CMakeLists.txt due to mbedtools evolution
2021-02-08 08:22:19 +00:00