You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2018/11/29 21:08:32 UTC

[mynewt-core] 02/14: hw/mcu/nordic: Update support for 380KHz I2C

This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 305301330612563effa7551c5481d9adaab6d6da
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Fri Nov 23 17:43:59 2018 +0100

    hw/mcu/nordic: Update support for 380KHz I2C
---
 hw/mcu/nordic/nrf52xxx/src/hal_i2c.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hw/mcu/nordic/nrf52xxx/src/hal_i2c.c b/hw/mcu/nordic/nrf52xxx/src/hal_i2c.c
index 5340ee3..24a6b25 100644
--- a/hw/mcu/nordic/nrf52xxx/src/hal_i2c.c
+++ b/hw/mcu/nordic/nrf52xxx/src/hal_i2c.c
@@ -398,6 +398,9 @@ hal_i2c_config(uint8_t i2c_num, const struct hal_i2c_settings *cfg)
     case 250:
         freq = TWI_FREQUENCY_FREQUENCY_K250;
         break;
+    case 380:
+        freq = TWI_FREQUENCY_FREQUENCY_K380;
+        break;
     case 400:
         freq = TWI_FREQUENCY_FREQUENCY_K400;
         break;