File: test-uart.c

package info (click to toggle)
kuttypy 2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 37,896 kB
  • sloc: python: 58,651; javascript: 14,686; xml: 5,767; ansic: 2,716; makefile: 453; asm: 254; sh: 48
file content (13 lines) | stat: -rw-r--r-- 217 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <avr/kp.h>

//extern void uart_init(uint16_t baud); 
//extern void uart_send_byte(uint8_t c);

int main (void) 
  { 
  uint8_t data = 'A';

  uart_init(38400);

  while(data <= 'z') uart_send_byte(data++); 
}