Fix uart_rx_init
This also renames it to make multiple rx facilities cause an symbol duplication error.
This commit is contained in:
parent
c745cd330f
commit
8f1f80bea3
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user