Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (22 sloc) 739 Bytes
#ifndef _SERIAL_H
#define _SERIAL_H
#include <stdint.h>
#include <avr/io.h>
#include <avr/pgmspace.h>
// initialise serial subsystem
void serial_init(void);
// return number of characters in the receive buffer, and number of spaces in the send buffer
uint8_t serial_rxchars(void);
// uint8_t serial_txchars(void);
// read one character
uint8_t serial_popchar(void);
// send one character
void serial_writechar(uint8_t data);
// read/write many characters
// uint8_t serial_recvblock(uint8_t *block, int blocksize);
void serial_writeblock(void *data, int datalen);
void serial_writestr(uint8_t *data);
// write from flash
void serial_writeblock_P(PGM_P data, int datalen);
void serial_writestr_P(PGM_P data);
#endif /* _SERIAL_H */
Jump to Line
Something went wrong with that request. Please try again.