HAL_ChibiOS: fixed order of I2C DMA

this was harmless, but confusing for debugging
This commit is contained in:
Andrew Tridgell 2018-02-06 08:13:16 +11:00
parent 1c0b598c05
commit 1aa6a0068a
1 changed files with 1 additions and 1 deletions

View File

@ -514,7 +514,7 @@ def write_I2C_config(f):
n = int(dev[3:])
devlist.append('HAL_I2C%u_CONFIG' % n)
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))
f.write('#define HAL_I2C_DEVICE_LIST %s\n\n' % ','.join(devlist))