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

View File

@@ -1,8 +1,6 @@
/** @defgroup ltdc_file LTDC
/** @defgroup ltdc_file LTDC peripheral API
*
* @ingroup STM32F4xx
*
* @brief <b>libopencm3 STM32F4xx LTDC</b>
* @ingroup peripheral_apis
*
* @version 1.0.0
*
@@ -11,12 +9,8 @@
*
* @date 5 December 2014
*
* This library supports the LCD controller (LTDC) in the STM32F4
* series of ARM Cortex Microcontrollers by ST Microelectronics.
*
* For the STM32F4xx, LTDC is described in LCD-TFT Controller (LTDC)
* section 16 of the STM32F4xx Reference Manual (RM0090,Rev8).
*
* This library supports the LCD controller (LTDC) in the STM32F4xx and
* STM32F7xx series of ARM Cortex Microcontrollers by ST Microelectronics.
*
* LGPL License Terms @ref lgpl_license
*/
@@ -40,7 +34,9 @@
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libopencm3/stm32/f4/ltdc.h>
/**@{*/
#include <libopencm3/stm32/common/ltdc_common_f47.h>
void ltdc_set_tft_sync_timings(uint16_t sync_width, uint16_t sync_height,
uint16_t h_back_porch, uint16_t v_back_porch,
@@ -87,3 +83,5 @@ void ltdc_setup_windowing(uint8_t layer_number,
(v_back_porch << 0);
}
/**@}*/

View File

@@ -54,7 +54,7 @@ OBJS += gpio_common_all.o gpio_common_f0234.o gpio.o
OBJS += hash_common_f24.o
OBJS += i2c_common_v1.o
OBJS += iwdg_common_all.o
OBJS += ltdc.o
OBJS += ltdc_common_f47.o
OBJS += pwr_common_v1.o pwr.o
OBJS += rcc_common_all.o rcc.o
OBJS += rng_common_v1.o

View File

@@ -54,6 +54,7 @@ OBJS += fmc_common_f47.o
OBJS += gpio.o gpio_common_all.o gpio_common_f0234.o
OBJS += i2c_common_v2.o
OBJS += iwdg_common_all.o
OBJS += ltdc_common_f47.o
OBJS += pwr.o rcc.o
OBJS += rcc_common_all.o
OBJS += rng_common_v1.o