stm32f7: enable existing ltdc

This uses the existing f4 code as a new shared common base code.
This commit is contained in:
Oliver Meier
2019-04-07 21:04:01 +02:00
committed by Karl Palsson
parent 16cfc6d848
commit 5a03cfe54e
8 changed files with 589 additions and 500 deletions
+31
View File
@@ -0,0 +1,31 @@
/** @defgroup ltdc_defines LTDC Defines
* @brief <b>Defined Constants and Types for the STM32F7xx LCD TFT Display
* Controller</b>
* @ingroup STM32F7xx_defines
*/
/*
* 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_STM32_F7_LTDC_H_
#define LIBOPENCM3_STM32_F7_LTDC_H_
#include <libopencm3/stm32/common/ltdc_common_f47.h>
#endif /* LIBOPENCM3_STM32_F7_LTDC_H_ */
/**@}*/
+1
View File
@@ -94,6 +94,7 @@
#define SAI1_BASE (PERIPH_BASE_APB2 + 0x5800)
#define SAI2_BASE (PERIPH_BASE_APB2 + 0x5C00)
#define LCD_TFT_BASE (PERIPH_BASE_APB2 + 0x6800)
#define LTDC_BASE (PERIPH_BASE_APB2 + 0x6800) /* compat. with f4 */
/* PERIPH_BASE_APB2 + 0x6C00 (0x4001 6C00 - 0x4001 FFFF): Reserved */
/* AHB1 */