Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
soburi committed Jan 11, 2024
1 parent 2a1ff2a commit 55c2774
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions tests/drivers/display/display_read_write/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ static inline uint8_t bytes_per_pixel(enum display_pixel_format pixel_format)

static void verify_bytes_of_area(uint8_t *data, int cmp_x, int cmp_y, size_t width, size_t height)
{
struct display_buffer_descriptor desc = {
.height = height,
.pitch = width,
.width = width,
.buf_size = height * width * bpp,
};
// struct display_buffer_descriptor desc = {

Check failure on line 44 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C99_COMMENTS

tests/drivers/display/display_read_write/src/main.c:44 do not use C99 // comments
// .height = height,

Check failure on line 45 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C99_COMMENTS

tests/drivers/display/display_read_write/src/main.c:45 do not use C99 // comments
// .pitch = width,

Check failure on line 46 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C99_COMMENTS

tests/drivers/display/display_read_write/src/main.c:46 do not use C99 // comments
// .width = width,

Check failure on line 47 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C99_COMMENTS

tests/drivers/display/display_read_write/src/main.c:47 do not use C99 // comments
// .buf_size = height * width * bpp,

Check failure on line 48 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C99_COMMENTS

tests/drivers/display/display_read_write/src/main.c:48 do not use C99 // comments
// };

Check failure on line 49 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C99_COMMENTS

tests/drivers/display/display_read_write/src/main.c:49 do not use C99 // comments

int err = display_read(dev, cmp_x, cmp_y, &desc, disp_buffer);
//int err = display_read(dev, cmp_x, cmp_y, &desc, disp_buffer);

Check failure on line 51 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C99_COMMENTS

tests/drivers/display/display_read_write/src/main.c:51 do not use C99 // comments

//zassert_ok(err, "display_read failed");

Check failure on line 53 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C99_COMMENTS

tests/drivers/display/display_read_write/src/main.c:53 do not use C99 // comments

Expand All @@ -68,9 +68,9 @@ static void verify_background_color(int x, int y, size_t width, size_t height, u
.width = width,
.buf_size = buf_size,
};
uint32_t *buf32 = (void *)disp_buffer;
uint16_t *buf16 = (void *)disp_buffer;
uint8_t *buf8 = disp_buffer;
// uint32_t *buf32 = (void *)disp_buffer;
// uint16_t *buf16 = (void *)disp_buffer;
// uint8_t *buf8 = disp_buffer;
int err;

err = display_read(dev, x, y, &desc, disp_buffer);
Expand All @@ -86,12 +86,12 @@ static void verify_background_color(int x, int y, size_t width, size_t height, u
break;
case 1:
if (is_tiled) {

Check warning on line 88 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

SUSPECT_CODE_INDENT

tests/drivers/display/display_read_write/src/main.c:88 suspect code indent for conditional statements (24, 0)
uint16_t x = i % (width);
uint16_t line = (i - x) / width;
uint16_t tile = line / 8;
uint16_t y = line % 8;
// uint16_t x = i % (width);
// uint16_t line = (i - x) / width;
// uint16_t tile = line / 8;
// uint16_t y = line % 8;

uint8_t *tptr = disp_buffer + (tile * width + x);
// uint8_t *tptr = disp_buffer + (tile * width + x);

//zassert_equal(!!(*tptr & BIT(y)), !!(color), "@%d", i);
} else {
Expand Down

0 comments on commit 55c2774

Please sign in to comment.