Fix uart_rx_init

This also renames it to make multiple rx facilities cause an symbol duplication
error.
This commit is contained in:
Nero 2018-01-29 19:42:09 +00:00 committed by Nero
parent c745cd330f
commit 8f1f80bea3

View File

@ -3,10 +3,11 @@
#include <avr/io.h> #include <avr/io.h>
#include <avr/interrupt.h> #include <avr/interrupt.h>
void __attribute__ ((naked)) __attribute__ ((section (".init6"))) uart_rx_async_init() { void __attribute__ ((naked)) __attribute__ ((section (".init6"))) uart_rx_init() {
UCSR0B = (1<<RXEN0) | (1<<RXCIE0); UCSR0B |= (1<<RXEN0) | (1<<RXCIE0);
} }
void __attribute__ ((naked)) __attribute__ ((section (".init8"))) uart_rx_sei() { void __attribute__ ((naked)) __attribute__ ((section (".init8"))) uart_rx_sei() {
sei(); sei();
} }