summaryrefslogtreecommitdiff
path: root/final_project/serial.h
blob: 6b5d3d20567d0fcdc8a2ee86e0bc468fcb72e132 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * serial.h
 *
 * Created: 4/3/2024 10:22:09 AM
 *  Author: bsw9xd
 */ 
#ifndef SERIAL_H
#define SERIAL_H

#include <avr/io.h>

#define F_CPU 16000000UL
#define BAUD 9600

void usart_init();
void usart_txt(char data);
char usart_rxt();
char usart_rxt_blocking();
void usart_txstr(char *str);

#endif