Browse Source

AP_HAL_FLYMAPLE: Modest speed improvements to I2CDriver

Can now achieve about 285kHz using bitbanging.
Proper low-level hardware I2C support has been written and stashed,
but has to wait until a bug in libmaple is addressed.
Ref: http://forums.leaflabs.com/topic.php?id=13458
master
Mike McCauley 12 years ago committed by Andrew Tridgell
parent
commit
29707f4401
  1. 3
      libraries/AP_HAL_FLYMAPLE/I2CDriver.cpp

3
libraries/AP_HAL_FLYMAPLE/I2CDriver.cpp

@ -27,7 +27,8 @@ @@ -27,7 +27,8 @@
using namespace AP_HAL_FLYMAPLE_NS;
static TwoWire twowire(5, 9, SOFT_FAST); // Flymaple has non-standard SCL, SDA, speed ~200kHz
// We use a 0 delay to go as fast as we can with bitbanging
static TwoWire twowire(5, 9, 0); // Flymaple has non-standard SCL, SDA, speed ~285kHz
void FLYMAPLEI2CDriver::begin()
{
twowire.begin();

Loading…
Cancel
Save