energia / msp432r-core

MSP432 EMT core for the production silicon (RED LaunchPad only)
2 stars 5 forks source link

I²C Configured in Fast Mode by Default #24

Open rei-vilo opened 5 years ago

rei-vilo commented 5 years ago

I²C is configured in fast mode 400 kHz by default.

https://github.com/energia/msp432r-core/blob/0faf18b698c69007ca1a132bd61c54a502158f3b/cores/msp432r/ti/runtime/wiring/Wire.cpp#L123

Provide standard mode 100 kHz for compatibility and fast mode plus 1 MHz as well.

robertinant commented 5 years ago

This requires us to sync with the Arduino Wire API which introduced a setClock() function to set the clock to a value other than the standard 100kHz. When this is implemented, we can default the clock to 100kHz allowing faster clocks through the setClock() API.