Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(dave2d): fix warnings on non Cortex-M85 #6284

Merged
merged 1 commit into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/draw/renesas/dave2d/lv_draw_dave2d.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ void lv_draw_dave2d_init(void)

static void lv_draw_buf_dave2d_init_handlers(void)
{
lv_draw_buf_handlers_t * handlers = lv_draw_buf_get_handlers();

#if defined(RENESAS_CORTEX_M85)
#if (BSP_CFG_DCACHE_ENABLED)
lv_draw_buf_handlers_t * handlers = lv_draw_buf_get_handlers();
handlers->invalidate_cache_cb = _dave2d_buf_invalidate_cache_cb;
#endif
#endif
Expand Down Expand Up @@ -430,10 +430,10 @@ static void execute_drawing(lv_draw_dave2d_unit_t * u)
{
/*Render the draw task*/
lv_draw_task_t * t = u->task_act;
lv_layer_t * layer = u->base_unit.target_layer;

#if defined(RENESAS_CORTEX_M85)
#if (BSP_CFG_DCACHE_ENABLED)
lv_layer_t * layer = u->base_unit.target_layer;
lv_area_t clipped_area;
int32_t x;
int32_t y;
Expand Down
2 changes: 0 additions & 2 deletions src/draw/renesas/dave2d/lv_draw_dave2d_line.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ void lv_draw_dave2d_line(lv_draw_dave2d_unit_t * u, const lv_draw_line_dsc_t * d

lv_area_t clip_line;
d2_u32 mode;
d2_s32 result;
lv_area_t buffer_area;
uint32_t res;
lv_value_precise_t p1_x;
lv_value_precise_t p1_y;
lv_value_precise_t p2_x;
Expand Down
Loading