My favorites
▼
|
Sign in
tinkercode
Miscellaneous Code Snippets for AVR programming
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
automation-framework
/
common
/
uart.h
‹r33
r143
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
///////////////////////////////////////////////////////////////////////////////
// uart.h - Home automation library
// Copyright (C) 2009 Jochen Toppe <jochen@jtoee.com>. All right reserved.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
///////////////////////////////////////////////////////////////////////////////
#ifndef UART_H_INCLUDED
#define UART_H_INCLUDED
#include "common.h"
//
// Initialize the uart.
//
void uart_initialize(uint8_t, uint8_t);
//
// Send a byte. Blocks until send buffer has availability.
//
void uart_send(uint8_t);
//
// Receive a byte. Blocks until bytes are available.
//
uint8_t uart_receive(void);
//
// Answer whether the uart has bytes available in the buffer for reading.
//
uint8_t uart_has_bytes(void);
#endif // UART_H_INCLUDED
Show details
Hide details
Change log
r68
by jochen.toppe on Dec 12, 2009
Diff
[No log message]
Go to:
...o_receiver/receiver/receiver.pde
...arduino_sender/sender/sender.pde
...mework/common/commandProcessor.c
...mework/common/commandProcessor.h
...mation-framework/common/config.c
...mation-framework/common/config.h
...ation-framework/common/devices.h
...tion-framework/common/protocol.c
...tion-framework/common/protocol.h
...mation-framework/common/rflink.c
...tomation-framework/common/uart.c
...tomation-framework/common/uart.h
...tomation-framework/common/util.c
...ramework/relay_receiver/Makefile
...-framework/relay_receiver/main.c
...automation-framework/test/test.c
Project members,
sign in
to write a code review
Older revisions
r33
by jochen.toppe on Dec 7, 2009
Diff
[No log message]
r22
by jochen.toppe on Nov 30, 2009
Diff
[No log message]
All revisions of this file
File info
Size: 1486 bytes, 45 lines
View raw file
Powered by
Google Project Hosting