Added a printf example that is using irq and a ring buffer to write to USART1 port. It is also reflecting the text you write to the device.

This commit is contained in:
Piotr Esden-Tempski
2011-02-18 12:18:57 -08:00
parent a71c4c128a
commit 662e77b4ee
4 changed files with 334 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
##
## This file is part of the libopencm3 project.
##
## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
##
## 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 3 of the License, or
## (at your option) any later version.
##
## This program 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 General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.
##
BINARY = usart_irq_printf
include ../../Makefile.include