diff options
author | yn386 <wf.yn386@gmail.com> | 2022-08-31 19:13:00 +0900 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-09-06 16:13:47 +1000 |
commit | da50827657d6bc3024dd6acea76cb315d1cbbae1 (patch) | |
tree | 775e62e58193b35989349beb22300deaef0296bf /docs/esp8266/tutorial/filesystem.rst | |
parent | 8770cd2f4d24b1ad14c934b4161e42108fe98f84 (diff) |
stm32/pyb_i2c: Fix pyb.I2C to work with dma=True on F4 MCUs.
Prior to this commit, excuting this code:
i2c = I2C(1, I2C.CONTROLLER, dma=True)
i2c.send(data, addr=i2c_addr)
the call to i2c.send() does not return and the board needs a reset. This
code works when dma=False.
According to the specification, I2Cx_EV_IRQHandler should:
- Write DR to address when Start condition generated.
- Clear ADDR by reading SR2 after reading SR2 when address sent.
These processes are included in HAL_I2C_EV_IRQHandler(), however the
firmware size increses about 2KB if HAL_I2C_EV_IRQHandler is called. This
commit adds above processes to i2c_ev_irq_handler, and increases firmware
by less than 100 bytes.
Fixes issue #2643.
Diffstat (limited to 'docs/esp8266/tutorial/filesystem.rst')
0 files changed, 0 insertions, 0 deletions