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) : remove __NOP(); and __BKPT(0); #6228

Merged
merged 7 commits into from
May 24, 2024

Conversation

jeremy-baker
Copy link
Contributor

Description of the feature or fix

fix (Dave2D) : Remove __NOP(); from the Dave2D code

Remove ARM __NOP(); from Dave2D code, to make compiling for RX core cleaner

Notes

@@ -45,7 +45,7 @@ d2_color lv_draw_dave2d_lv_colour_to_d2_colour(lv_color_t color)
/*Color depth: 8 (A8), 16 (RGB565), 24 (RGB888), 32 (XRGB8888)*/
switch(LV_COLOR_DEPTH) {
case(8):
__BKPT(0);
LV_ASSERT(1 == 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be reduced to LV_ASSERT(0)?

@@ -113,7 +113,7 @@ d2_u32 lv_draw_dave2d_lv_colour_fmt_to_d2_fmt(lv_color_format_t colour_format)
break;

default:
__BKPT(0);
LV_ASSERT(1 == 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be reduced to LV_ASSERT(0)?

@@ -129,7 +127,7 @@ void lv_draw_dave2d_triangle(lv_draw_dave2d_unit_t * u, const lv_draw_triangle_d
}
else if(LV_GRAD_DIR_HOR == dsc->bg_grad.dir) {
/* TODO */
__BKPT(0);
LV_ASSERT(1 == 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be reduced to LV_ASSERT(0)?

@@ -112,7 +110,7 @@ void lv_draw_dave2d_triangle(lv_draw_dave2d_unit_t * u, const lv_draw_triangle_d

if(a1 < a2) {
/* TODO */
__BKPT(0);
LV_ASSERT(1 == 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be reduced to LV_ASSERT(0)?

kisvegabor
kisvegabor previously approved these changes May 22, 2024
@kisvegabor kisvegabor changed the title fix (Dave2D) : Remove __NOP(); from the Dave2D code fix (dave2d) : remove __NOP(); and __BKPT(0); May 22, 2024
src/draw/renesas/dave2d/lv_draw_dave2d_fill.c Outdated Show resolved Hide resolved
src/draw/renesas/dave2d/lv_draw_dave2d_fill.c Outdated Show resolved Hide resolved
src/draw/renesas/dave2d/lv_draw_dave2d_fill.c Outdated Show resolved Hide resolved
@kisvegabor kisvegabor merged commit 8bc1ba7 into lvgl:master May 24, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants