mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-23 22:30:37 +02:00
ubb-vga2.c (line, frame): don't pass prefetch pointer but just use *p
This commit is contained in:
parent
6414d92412
commit
e94b3bbcfc
@ -262,7 +262,7 @@ void setup(void)
|
||||
}
|
||||
|
||||
|
||||
static void line(const uint32_t *line, volatile const uint32_t *prefetch)
|
||||
static void line(const uint32_t *line)
|
||||
{
|
||||
const uint32_t *p = line;
|
||||
|
||||
@ -344,7 +344,7 @@ static void line(const uint32_t *line, volatile const uint32_t *prefetch)
|
||||
}
|
||||
|
||||
fail:
|
||||
(void) *prefetch;
|
||||
(void) *(volatile const uint32_t *) p;
|
||||
until(line_cycles);
|
||||
}
|
||||
|
||||
@ -385,7 +385,7 @@ static void frame(const uint32_t *f)
|
||||
until(line_cycles-US(0.79));
|
||||
|
||||
for (p = f; p != f+YRES*line_words; p += line_words)
|
||||
line(p, p+line_words);
|
||||
line(p);
|
||||
|
||||
/* Back porch */
|
||||
hdelay(14);
|
||||
|
Loading…
Reference in New Issue
Block a user