stm32f7: usart: enable usart peripheral
Add usart-v2 to stm32f7 to provide usart support in f7 series.
This commit is contained in:
parent
ef04708e92
commit
580a2a4a63
55
include/libopencm3/stm32/f7/usart.h
Normal file
55
include/libopencm3/stm32/f7/usart.h
Normal file
@ -0,0 +1,55 @@
|
||||
/** @defgroup usart_defines USART Defines
|
||||
*
|
||||
* @brief <b>Defined Constants and Types for the STM32F7xx USART</b>
|
||||
*
|
||||
* @ingroup STM32F7xx_defines
|
||||
*
|
||||
* @version 1.0.0
|
||||
*
|
||||
* @date 5 December 2012
|
||||
*
|
||||
* LGPL License Terms @ref lgpl_license
|
||||
*/
|
||||
|
||||
/*
|
||||
* This file is part of the libopencm3 project.
|
||||
*
|
||||
* 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 3 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, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBOPENCM3_USART_H
|
||||
#define LIBOPENCM3_USART_H
|
||||
|
||||
#include <libopencm3/stm32/common/usart_common_all.h>
|
||||
#include <libopencm3/stm32/common/usart_common_v2.h>
|
||||
|
||||
|
||||
/** @defgroup usart_reg_base USART register base addresses
|
||||
* @ingroup STM32F_usart_defines
|
||||
* Holds all the U(S)ART peripherals supported.
|
||||
* @{
|
||||
*/
|
||||
#define USART1 USART1_BASE
|
||||
#define USART2 USART2_BASE
|
||||
#define USART3 USART3_BASE
|
||||
#define UART4 UART4_BASE
|
||||
#define UART5 UART5_BASE
|
||||
/**@}*/
|
||||
|
||||
BEGIN_DECLS
|
||||
|
||||
END_DECLS
|
||||
|
||||
#endif
|
||||
|
@ -30,6 +30,8 @@
|
||||
# include <libopencm3/stm32/f3/usart.h>
|
||||
#elif defined(STM32F4)
|
||||
# include <libopencm3/stm32/f4/usart.h>
|
||||
#elif defined(STM32F7)
|
||||
# include <libopencm3/stm32/f7/usart.h>
|
||||
#elif defined(STM32L0)
|
||||
# include <libopencm3/stm32/l0/usart.h>
|
||||
#elif defined(STM32L1)
|
||||
|
@ -48,6 +48,8 @@ OBJS += rcc_common_all.o flash_common_f234.o flash_common_f24.o
|
||||
|
||||
OBJS += rng_common_v1.o
|
||||
|
||||
OBJS += usart_common_all.o usart_common_v2.o
|
||||
|
||||
VPATH += ../../usb:../:../../cm3:../common
|
||||
VPATH += ../../ethernet
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user