Newer
Older
Harvey Leicester
committed
/* SAM7Sisp - alternatywny bootloader dla mikrokontrolerw AT91SAM7
(c) Tomasz Wlostowski 2006
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
*/
#ifndef __SERIAL_H
#define __SERIAL_H
int serial_open(char *dev_name, int speed);
void serial_close(void);
void serial_set_dtr(int s);
int serial_read(char *data, int len);
int serial_write(char *data, int len);
void serial_write_byte(unsigned char b);
unsigned char serial_read_byte(void);
int serial_data_avail(void);
void sys_delay(int msecs);
unsigned int sys_get_clock_usec(void);
#endif