Skip to content

av1024/uart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom implementstion of USART for ATMega.

Moved to bitbucket

https://bitbucket.org/av1024/uart

  • RS485 driving supported
  • Configuration defines for ATMega 88/168/328 but shoul work with other on USART0

Usage:

// setup
uart_init(38400); // Initialize as 8-N-1, 38400 via define

// using
uart_print("ABC");
uart_print_p(PSTR("Progmem string"));
// or
uart_pprint("Progmem string");

// finish sending before sleep:
uart_tx_flush();
sleep_cpu();

About

ATMega AVR USART code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages