refactor: DMA2D and LTDC conversion to HAL/LL (#3036)
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
co-authored by
Peter Feerick
parent
d0ae5bd85c
commit
1af8b78256
@@ -19,7 +19,10 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include "board.h"
|
||||
#include "lcd.h"
|
||||
#include "dma2d.h"
|
||||
#include "bitmapbuffer.h"
|
||||
#include <lvgl/lvgl.h>
|
||||
|
||||
pixel_t LCD_FIRST_FRAME_BUFFER[DISPLAY_BUFFER_SIZE] __SDRAM;
|
||||
@@ -129,7 +132,7 @@ static void flushLcd(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_
|
||||
src, LCD_W, LCD_H, refr_area.x1, refr_area.y1,
|
||||
area_w, area_h);
|
||||
}
|
||||
|
||||
DMAWait(); // wait for the last DMACopyBitmap to be completed before sending completion message
|
||||
lv_disp_flush_ready(disp_drv);
|
||||
#endif
|
||||
} else {
|
||||
@@ -246,6 +249,11 @@ static void _draw_buf_flush(lv_disp_t* disp)
|
||||
}
|
||||
}
|
||||
|
||||
void lcdClear()
|
||||
{
|
||||
lcd->clear();
|
||||
}
|
||||
|
||||
void lcdRefresh()
|
||||
{
|
||||
_draw_buf_flush(disp);
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
#ifndef _LCD_H_
|
||||
#define _LCD_H_
|
||||
|
||||
#include "bitmapbuffer.h"
|
||||
#include "opentx_types.h"
|
||||
|
||||
#include "colors.h"
|
||||
@@ -51,7 +50,7 @@ void lcdInitDisplayDriver();
|
||||
// Patch the draw context to allow for direct drawing
|
||||
void lcdInitDirectDrawing();
|
||||
|
||||
inline void lcdClear() { lcd->clear(); }
|
||||
void lcdClear();
|
||||
|
||||
void lcdRefresh();
|
||||
void lcdFlushed();
|
||||
|
||||
Reference in New Issue
Block a user