2017-01-10 23:06:12 +00:00
|
|
|
/* This provides unification of code over STM32 subfamilies */
|
2012-10-10 11:01:31 +00:00
|
|
|
|
2009-07-22 12:02:21 +00:00
|
|
|
/*
|
2010-12-30 12:19:25 +00:00
|
|
|
* This file is part of the libopencm3 project.
|
2009-07-22 12:02:21 +00:00
|
|
|
*
|
2012-03-02 10:23:11 +00:00
|
|
|
* 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
|
2009-07-22 12:02:21 +00:00
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
2012-03-02 10:23:11 +00:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
2009-07-22 12:02:21 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2012-03-02 10:23:11 +00:00
|
|
|
* GNU Lesser General Public License for more details.
|
2009-07-22 12:02:21 +00:00
|
|
|
*
|
2012-03-02 10:23:11 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* along with this library. If not, see <http://www.gnu.org/licenses/>.
|
2009-07-22 12:02:21 +00:00
|
|
|
*/
|
|
|
|
|
2014-02-20 22:34:19 +00:00
|
|
|
#include <libopencm3/cm3/common.h>
|
|
|
|
#include <libopencm3/stm32/memorymap.h>
|
|
|
|
|
2013-07-22 15:52:08 +00:00
|
|
|
#if defined(STM32F0)
|
|
|
|
# include <libopencm3/stm32/f0/usart.h>
|
|
|
|
#elif defined(STM32F1)
|
2012-12-05 07:22:15 +00:00
|
|
|
# include <libopencm3/stm32/f1/usart.h>
|
|
|
|
#elif defined(STM32F2)
|
|
|
|
# include <libopencm3/stm32/f2/usart.h>
|
2013-06-26 08:37:34 +00:00
|
|
|
#elif defined(STM32F3)
|
|
|
|
# include <libopencm3/stm32/f3/usart.h>
|
2012-12-05 07:22:15 +00:00
|
|
|
#elif defined(STM32F4)
|
|
|
|
# include <libopencm3/stm32/f4/usart.h>
|
2017-10-25 23:26:08 +00:00
|
|
|
#elif defined(STM32L0)
|
|
|
|
# include <libopencm3/stm32/l0/usart.h>
|
2012-12-05 07:22:15 +00:00
|
|
|
#elif defined(STM32L1)
|
|
|
|
# include <libopencm3/stm32/l1/usart.h>
|
2017-10-25 23:54:32 +00:00
|
|
|
#elif defined(STM32L4)
|
|
|
|
# include <libopencm3/stm32/l4/usart.h>
|
2012-12-05 07:22:15 +00:00
|
|
|
#else
|
|
|
|
# error "stm32 family not defined."
|
2010-02-23 23:34:18 +00:00
|
|
|
#endif
|
2012-10-10 11:01:31 +00:00
|
|
|
|