Skip to content

Commit 2e083e6

Browse files
facchinmpennam
authored andcommitted
lvgl: handle caches for all CortexM7 targets
1 parent 390b1f8 commit 2e083e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libraries/Camera/src/camera.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,4 +650,4 @@ void Camera::debug(Stream &stream)
650650
{
651651
_debug = &stream;
652652
this->sensor->debug(stream);
653-
}
653+
}

libraries/Portenta_lvgl/src/porting.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ static lv_disp_drv_t disp_drv;
1616
static void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t *color_p)
1717
{
1818

19-
#if ARDUINO_PORTENTA_H7_M7
19+
#if defined(__CORTEX_M7)
2020
SCB_CleanInvalidateDCache();
2121
SCB_InvalidateICache();
2222
#endif
@@ -63,7 +63,7 @@ static void my_disp_flush(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_t
6363
static void gpu_blend(lv_disp_drv_t * disp_drv, lv_color_t * dest, const lv_color_t * src, uint32_t length, lv_opa_t opa)
6464
{
6565

66-
#if ARDUINO_PORTENTA_H7_M7
66+
#if defined(__CORTEX_M7)
6767
SCB_CleanInvalidateDCache();
6868
#endif
6969

@@ -98,7 +98,7 @@ static void gpu_blend(lv_disp_drv_t * disp_drv, lv_color_t * dest, const lv_colo
9898
static void gpu_fill(lv_disp_drv_t * disp_drv, lv_color_t * dest_buf, lv_coord_t dest_width,
9999
const lv_area_t * fill_area, lv_color_t color)
100100
{
101-
#if ARDUINO_PORTENTA_H7_M7
101+
#if defined(__CORTEX_M7)
102102
SCB_CleanInvalidateDCache();
103103
#endif
104104

0 commit comments

Comments
 (0)