Commit Graph

14 Commits

Author SHA1 Message Date
px4dev b46d05835b Implement settable failsafe values for PWM outputs.
By default in failsafe mode, PWM output pulses are not generated.
2013-01-25 22:58:33 -08:00
px4dev 6c75c5909e Move the DMA start to immediately after setting it up; less latency at interrupt time, and no chance of getting start/stop calls out of sync. 2013-01-25 21:58:55 -08:00
px4dev 82f72b96de Move DMA start for tx/rx into the gap where SCL is still stretched so that there is no risk of receiving the first byte before DMA starts. 2013-01-25 21:35:32 -08:00
px4dev b34311915a Safeguard against back-to-back transactions while setting up to handle a register read request. 2013-01-23 18:56:58 -08:00
px4dev f3a587dfce Wire the I2C device code into the register handler. 2013-01-15 00:40:41 -08:00
px4dev 4e38615595 Major workover of the PX4IO firmware for I2C operation. 2013-01-13 19:05:01 -08:00
px4dev 1cecba2a86 Turn off i2c slave debug output for real. 2013-01-13 19:05:01 -08:00
px4dev 97136375e3 Turn off the I2C register dump at startup. 2013-01-13 19:05:00 -08:00
px4dev 4f285f7c80 Configure the DMA channels in circular mode so that we don't have to deal with the case where DMA stops but the master is still talking.
Use AF as well as STOPF to decide when transfer has ended. We don't seem to get STOPF when we are transmitting.
2013-01-13 19:05:00 -08:00
px4dev 3cea0959b7 Implement a simple byte loopback server on I2C for more testing. 2013-01-13 19:05:00 -08:00
px4dev 2fb820fabd I2C slave RX DMA works. 2013-01-13 19:05:00 -08:00
px4dev 0dab53ae26 Implement I2C slave DMA. Not working yet. 2013-01-13 19:05:00 -08:00
px4dev 7c2445f74d Don't waste time printing when we have errors - that causes the master to time out 2013-01-13 19:04:59 -08:00
px4dev 811790a14f Checkpoint I2C slave work on IO 2013-01-13 19:04:59 -08:00