sysprog-basic/include/uart.h

14 lines
263 B
C
Raw Normal View History

2023-12-09 11:27:55 +01:00
#define F_CPU 16000000UL
#define __AVR_ATmega328P__
#include <avr/interrupt.h>
#include <avr/io.h>
#include <util/delay.h>
#pragma once
void uart_init();
void uart_prints(char* s);
void uart_printc(char c);
2023-12-09 12:06:16 +01:00
void uart_printi(char* pre, int i);
2023-12-09 11:27:55 +01:00
char uart_getc();