Have a look at the UART IDLE interrupt!
I use this Interrupt as an indication that the bus is idle .. (never guessed that - huh?)
In the ISR i check for transmitted / received byte count and signal tasks accordingly.
Best,
chibby
Search found 3 matches
- Tue Mar 03, 2015 7:38 am
- Forum: ChibiOS/HAL
- Topic: UART variable sized string receive with DMA and a timer
- Replies: 5
- Views: 7640
- Wed Feb 25, 2015 12:01 am
- Forum: ChibiOS/HAL
- Topic: I2C slave-RX plus master transmit = LOCKED
- Replies: 4
- Views: 5616
Re: I2C slave-RX plus master transmit = LOCKED
Besides some "special actions" i'd have to take (?) .. How can it be, that the library locks itself out if an error happens??
Nothing can lift that I2C_LOCKED state! I can't even de-init the driver, because of an assertion on that state.
The mentioned git repo at https://github.com/brentr ...
Nothing can lift that I2C_LOCKED state! I can't even de-init the driver, because of an assertion on that state.
The mentioned git repo at https://github.com/brentr ...
- Tue Feb 24, 2015 6:30 pm
- Forum: ChibiOS/HAL
- Topic: I2C slave-RX plus master transmit = LOCKED
- Replies: 4
- Views: 5616
I2C slave-RX plus master transmit = LOCKED
Hi!
I'm using the i2c-slave patch from http://forum.chibios.org/phpbb/viewtopic.php?f=2&t=1502&start=40#p18502 thread on the STM32F4 with ChibiOS 3.
Slave-RX works so far.
Only sometimes i get a problem when sending, and the other master supposedly sends at the same time (?).
I ...
I'm using the i2c-slave patch from http://forum.chibios.org/phpbb/viewtopic.php?f=2&t=1502&start=40#p18502 thread on the STM32F4 with ChibiOS 3.
Slave-RX works so far.
Only sometimes i get a problem when sending, and the other master supposedly sends at the same time (?).
I ...