Skip to content

hwstar/avr-uart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

avr-uart

An interrupt-driven UART Library for 8-bit AVR microcontrollers and stream support for printf/scanf

Derived from work by Peter Fleury, Andy Gock. This is a fork of https://github.com/andygock/avr-uart

This fork provides one extra function uartstream_init() and sets the receive and TX buffers to 16 bytes.

FILE *uartstream_init(uint32_t baudrate)

Initializes uart #0 baud rate and interrupt handler. Returns a file handle pointer which can be used for both reading and writing.

Once you have the file handle, you can assign it to stdout and stdin so that libc functions such as printf() and scanf() can be used send and receive data using the uart.

About

AVR UART C Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 94.7%
  • Makefile 5.3%