mirror of
https://github.com/apache/nuttx.git
synced 2026-05-19 11:53:25 +08:00
STM32 LTDC: Move ltdc.h from include/nuttx/video to arch/arm/include/stm32; Trivial updates after general review
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*******************************************************************************
|
||||
* include/nuttx/video/ltdc.h
|
||||
* arch/arm/src/include/stm32/ltdc.h
|
||||
*
|
||||
* Copyright (C) 2014 Marco Krahl. All rights reserved.
|
||||
* Author: Marco Krahl <ocram.lhark@gmail.com>
|
||||
@@ -33,8 +33,8 @@
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
#ifndef _INCLUDE_NUTTX_VIDEO_LTDC_H
|
||||
#define _INCLUDE_NUTTX_VIDEO_LTDC_H
|
||||
#ifndef __ARCH_ARM_INCLUDE_STM32_LTDC_H
|
||||
#define __ARCH_ARM_INCLUDE_STM32_LTDC_H
|
||||
|
||||
/*******************************************************************************
|
||||
* Included Files
|
||||
@@ -560,4 +560,4 @@ struct ltdc_layer_s
|
||||
******************************************************************************/
|
||||
FAR struct ltdc_layer_s *up_ltdcgetlayer(int lid);
|
||||
#endif /* CONFIG_STM32_LTDC */
|
||||
#endif /* _INCLUDE_NUTTX_VIDEO_LTDC_H */
|
||||
#endif /* __ARCH_ARM_INCLUDE_STM32_LTDC_H */
|
||||
@@ -48,9 +48,9 @@
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/video/fb.h>
|
||||
#include <nuttx/video/ltdc.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
|
||||
#include <arch/chip/ltdc.h>
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
@@ -109,16 +109,15 @@
|
||||
****************************************************************************/
|
||||
|
||||
int stm32_dma2dblit(FAR struct stm32_ltdc_s *dest,
|
||||
FAR struct stm32_ltdc_s *fore,
|
||||
fb_coord_t forexpos, fb_coord_t foreypos,
|
||||
FAR struct stm32_ltdc_s *back,
|
||||
FAR const struct ltdc_area_s *backarea)
|
||||
FAR struct stm32_ltdc_s *fore,
|
||||
fb_coord_t forexpos, fb_coord_t foreypos,
|
||||
FAR struct stm32_ltdc_s *back,
|
||||
FAR const struct ltdc_area_s *backarea)
|
||||
{
|
||||
gdbg("Not implemented");
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
*
|
||||
* Name: stm32_dma2dblend
|
||||
@@ -144,16 +143,15 @@ int stm32_dma2dblit(FAR struct stm32_ltdc_s *dest,
|
||||
****************************************************************************/
|
||||
|
||||
int stm32_dma2dblend(FAR struct stm32_ltdc_s *dest,
|
||||
FAR struct stm32_ltdc_s *fore,
|
||||
fb_coord_t forexpos, fb_coord_t foreypos,
|
||||
FAR struct stm32_ltdc_s *back,
|
||||
FAR const struct ltdc_area_s *backarea)
|
||||
FAR struct stm32_ltdc_s *fore,
|
||||
fb_coord_t forexpos, fb_coord_t foreypos,
|
||||
FAR struct stm32_ltdc_s *back,
|
||||
FAR const struct ltdc_area_s *backarea)
|
||||
{
|
||||
gdbg("Not implemented");
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
* Name: up_dma2dinitialize
|
||||
*
|
||||
@@ -182,4 +180,3 @@ int up_dma2dinitialize(void)
|
||||
void up_dma2duninitialize(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <nuttx/video/fb.h>
|
||||
#include <nuttx/video/ltdc.h>
|
||||
#include <arch/chip/ltdc.h>
|
||||
#include "stm32_ltdc.h"
|
||||
|
||||
#ifdef CONFIG_STM32_DMA2D
|
||||
|
||||
+72
-102
File diff suppressed because it is too large
Load Diff
@@ -42,13 +42,17 @@
|
||||
************************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <semaphore.h>
|
||||
|
||||
#include <nuttx/video/fb.h>
|
||||
#include <nuttx/video/ltdc.h>
|
||||
#include <nuttx/nx/nxglib.h>
|
||||
|
||||
#include <arch/chip/ltdc.h>
|
||||
|
||||
#ifdef CONFIG_STM32_LTDC
|
||||
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
@@ -98,8 +102,7 @@ struct stm32_ltdc_s
|
||||
/************************************************************************************
|
||||
* Public Functions
|
||||
************************************************************************************/
|
||||
/*
|
||||
* The STM32 LTDC driver uses the common framebuffer interfaces declared in
|
||||
/* The STM32 LTDC driver uses the common framebuffer interfaces declared in
|
||||
* include/nuttx/video/fb.h.
|
||||
*/
|
||||
|
||||
|
||||
@@ -45,7 +45,8 @@
|
||||
#include <nuttx/arch.h>
|
||||
#include <nuttx/lcd/ili9341.h>
|
||||
#include <nuttx/video/fb.h>
|
||||
#include <nuttx/video/ltdc.h>
|
||||
|
||||
#include <arch/chip/ltdc.h>
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "up_arch.h"
|
||||
|
||||
Reference in New Issue
Block a user