mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 02:14:26 +01:00
avr: remove superfluous function
Signed-off-by: Ralf Ramsauer <ralf@binary-kitchen.de>
This commit is contained in:
parent
2307df2a0b
commit
0f6c837eb8
@ -25,8 +25,6 @@
|
|||||||
#error Choose another crystal. Baud error too high.
|
#error Choose another crystal. Baud error too high.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void (*recv_handler)(unsigned char c) = NULL;
|
|
||||||
|
|
||||||
void uart_init()
|
void uart_init()
|
||||||
{
|
{
|
||||||
// Enable receive and transmit
|
// Enable receive and transmit
|
||||||
@ -39,11 +37,6 @@ void uart_init()
|
|||||||
UBRRL = UBRR_VAL & 0xFF;
|
UBRRL = UBRR_VAL & 0xFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
void uart_set_recv_handler(void (*handler)(unsigned char c))
|
|
||||||
{
|
|
||||||
recv_handler = handler;
|
|
||||||
}
|
|
||||||
|
|
||||||
void uart_putc(const char c)
|
void uart_putc(const char c)
|
||||||
{
|
{
|
||||||
while ( !(UCSRA & (1<<UDRE)) );
|
while ( !(UCSRA & (1<<UDRE)) );
|
||||||
|
Loading…
Reference in New Issue
Block a user