1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/atmega_common
Francisco Molina 70c6df9330 cpu/atmega_common/periph/uart: use TX_ISR to check TX end
For atmega boards a TX has not actually completed until UDRn is empty
as well as the Transmit Shift Register.

To avoid resetting an UART before a TX has completed we use the TXCn
flash and ISR to set a variables that indicates TX is ongoing. This
allows not reseting the UART while there are ongoing TX pending.

This fixes an issue where part of the last byte is not shifted out
of the TX shift register causing rubish on the first TX following an
uart_init.
2020-01-15 10:02:40 +01:00
..
avr_libc_extra cpu/atmega_common: wrappers to avoid preemtion 2019-08-12 23:22:23 +02:00
include cpu/atmega256rfr2: symbol counter based RTT support 2019-12-05 22:53:05 +01:00
periph cpu/atmega_common/periph/uart: use TX_ISR to check TX end 2020-01-15 10:02:40 +01:00
cpu.c Merge pull request #12790 from maribu/atmega_isr_thread 2019-11-24 11:10:10 +01:00
doc.txt cpu: atmega_common: Initial import 2014-08-27 16:22:48 +02:00
irq_arch.c cpu/atmega_common: Stop using reserved names 2019-11-23 11:56:11 +01:00
Makefile atmega_common: refactor avr-libc-extra into avr_libc_extra module 2019-01-21 14:37:08 +01:00
Makefile.dep cpu/atmega: cleanup dependencies handling 2019-10-18 12:40:34 +02:00
Makefile.features atmega_common: provide CPU ID for every device 2019-11-08 16:58:03 +01:00
Makefile.include cpu/atmega: cleanup dependencies handling 2019-10-18 12:40:34 +02:00
startup.c cpu/atmega_common: add mega2560 puf_sram feature 2018-11-20 09:45:32 +01:00
thread_arch.c cpu/atmega_common: Fixed atmega_exit_isr 2019-11-27 01:39:33 +01:00