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
Parent:
0:7a91348b4a02
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) {