mirror of https://github.com/ArduPilot/ardupilot
HAL_ChibiOS: fixed order of I2C DMA
this was harmless, but confusing for debugging
This commit is contained in:
parent
1c0b598c05
commit
1aa6a0068a
|
@ -514,7 +514,7 @@ def write_I2C_config(f):
|
||||||
n = int(dev[3:])
|
n = int(dev[3:])
|
||||||
devlist.append('HAL_I2C%u_CONFIG' % n)
|
devlist.append('HAL_I2C%u_CONFIG' % n)
|
||||||
f.write(
|
f.write(
|
||||||
'#define HAL_I2C%u_CONFIG { &I2CD%u, STM32_I2C_I2C%u_TX_DMA_STREAM, STM32_I2C_I2C%u_RX_DMA_STREAM }\n'
|
'#define HAL_I2C%u_CONFIG { &I2CD%u, STM32_I2C_I2C%u_RX_DMA_STREAM, STM32_I2C_I2C%u_TX_DMA_STREAM }\n'
|
||||||
% (n, n, n, n))
|
% (n, n, n, n))
|
||||||
f.write('#define HAL_I2C_DEVICE_LIST %s\n\n' % ','.join(devlist))
|
f.write('#define HAL_I2C_DEVICE_LIST %s\n\n' % ','.join(devlist))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue