Library to access LPC17xx peripherals. It uses static inline functions, constant propagation and dead code elimination to be as fast as possible.
Dependents: Chua-VGA Wolfram-1D-VGA WolframRnd-1D-VGA Basin-VGA ... more
Revision 2:148b9af2b336, committed 2012-01-04
- Comitter:
- Ivop
- Date:
- Wed Jan 04 01:42:56 2012 +0000
- Parent:
- 1:bc492a93e116
- Commit message:
- fixed bug in fl_uart_send_byte. thanks to smayr for finding it
Changed in this revision
uart.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r bc492a93e116 -r 148b9af2b336 uart.h --- a/uart.h Sun Jul 17 16:03:50 2011 +0000 +++ b/uart.h Wed Jan 04 01:42:56 2012 +0000 @@ -1,4 +1,4 @@ -/* Copyright (C) 2010, 2011 by Ivo van Poorten <ivop@euronet.nl> +/* Copyright (C) 2010, 2011, 2012 by Ivo van Poorten <ivop@euronet.nl> * This file is licensed under the terms of the GNU Lesser * General Public License, version 3. */ @@ -54,7 +54,7 @@ } static inline void fl_uart_send_byte(const unsigned uart, const unsigned byte) { - *FL_UART(uart, THR); + *FL_UART(uart, THR) = byte; } static inline unsigned fl_uart_get_divisor_latch(const unsigned uart) {