BlinkenArea - GitList
Repositories
Blog
Wiki
flaneth
Code
Commits
Branches
Tags
Search
Tree:
2342395
Branches
Tags
master
flaneth
firmware
ser115200.c
change email address in header to blinkenarea address
Stefan Schuermans
commited
2342395
at 2012-05-22 19:18:57
ser115200.c
Blame
History
Raw
/* flaneth - flash and ethernet Copyright (C) 2007-2012 Stefan Schuermans <stefan@blinkenarea.org> Copyleft: GNU public license V2 - http://www.gnu.org/copyleft/gpl.html a BlinkenArea project - http://www.blinkenarea.org/ */ #include <avr/io.h> #include <avr/wdt.h> #include "ser115200.h" // initialize void Ser115200Init(void) // (extern) { DDRD |= 1 << 3; PORTD |= 1 << 3; } // send data with 115200 baud in 8N1 protocol void Ser115200Send(unsigned char *ptr, unsigned short len) { while (len > 0) { wdt_reset(); Ser115200Out(*ptr); ++ptr; --len; } }