#include <stdint.h>
#include <stdio.h>
#include <avr/io.h>
#include "atom.h"
#include "atommutex.h"
#include "atomport-private.h"
#include "uart.h"
Defines | |
#define | REG_UCSRA UCSR0A |
#define | REG_UCSRB UCSR0B |
#define | REG_UBRRL UBRR0L |
#define | REG_UDR UDR0 |
#define | BIT_TXEN TXEN0 |
#define | BIT_RXEN RXEN0 |
#define | BIT_UDRE UDRE0 |
Functions | |
int | uart_init (uint32_t baudrate) |
int | uart_putchar (char c, FILE *stream) |
#define BIT_RXEN RXEN0 |
Referenced by uart_init().
#define BIT_TXEN TXEN0 |
Referenced by uart_init().
#define BIT_UDRE UDRE0 |
Referenced by uart_putchar().
#define REG_UBRRL UBRR0L |
Referenced by uart_init().
#define REG_UCSRA UCSR0A |
Referenced by uart_init(), and uart_putchar().
#define REG_UCSRB UCSR0B |
Referenced by uart_init().
#define REG_UDR UDR0 |
Referenced by uart_putchar().
int uart_init | ( | uint32_t | baudrate | ) |
int uart_putchar | ( | char | c, | |
FILE * | stream | |||
) |
References BIT_UDRE, REG_UCSRA, REG_UDR, and uart_putchar().
Referenced by uart_putchar().