mirror of
https://github.com/brain-hackers/lab
synced 2024-11-15 06:38:01 +09:00
25 lines
490 B
Plaintext
25 lines
490 B
Plaintext
|
#include "common.h"
|
||
|
|
||
|
void main() {
|
||
|
u16** fb = (u16 **)0x62000000;
|
||
|
pixel_t px = {
|
||
|
.r = 255,
|
||
|
.g = 0,
|
||
|
.b = 0
|
||
|
};
|
||
|
|
||
|
prepare_fb(fb);
|
||
|
writel(0x00000001, 0x40aa0008); // Clear RUN
|
||
|
writel(0x62000000, 0x40aa0040); // Set current FB
|
||
|
writel(0x62000000, 0x40aa0050); // Set next FB
|
||
|
writel(0x00000001, 0x40aa0004); // Set RUN
|
||
|
|
||
|
//bitblt(fb, px, 100, 100);
|
||
|
|
||
|
asm volatile(
|
||
|
"foo:\n"
|
||
|
"b foo\n"
|
||
|
"mov pc, lr\n"
|
||
|
);
|
||
|
}
|