forked from Mirrors/usk
publish
This commit is contained in:
parent
2a6119ed28
commit
0f06693fb1
2 changed files with 5 additions and 5 deletions
4
main.c
4
main.c
|
|
@ -34,7 +34,7 @@ void rewrite_payload()
|
||||||
{
|
{
|
||||||
put_pixel(PIX_whi);
|
put_pixel(PIX_whi);
|
||||||
write_payload();
|
write_payload();
|
||||||
put_pixel(PIX_red);
|
put_pixel(PIX_gre);
|
||||||
// used to automatically rewrite payload when eMMC/console changes
|
// used to automatically rewrite payload when eMMC/console changes
|
||||||
init_config(cid_buf + 1);
|
init_config(cid_buf + 1);
|
||||||
}
|
}
|
||||||
|
|
@ -102,7 +102,7 @@ int main()
|
||||||
// is chip reset required
|
// is chip reset required
|
||||||
bool force_button = detect_by_pull_up(1, 0);
|
bool force_button = detect_by_pull_up(1, 0);
|
||||||
// start LED
|
// start LED
|
||||||
put_pixel(PIX_gre);
|
put_pixel(PIX_red);
|
||||||
// test pins
|
// test pins
|
||||||
self_test();
|
self_test();
|
||||||
// wait till the CPU has proper power & started reading the eMMC
|
// wait till the CPU has proper power & started reading the eMMC
|
||||||
|
|
|
||||||
6
misc.h
6
misc.h
|
|
@ -1,6 +1,6 @@
|
||||||
#define PIX_gre 0x00FF00
|
#define PIX_gre 0x32ae00
|
||||||
#define PIX_red 0xFF0000
|
#define PIX_red 0xc90000
|
||||||
#define PIX_whi 0x111111
|
#define PIX_whi 0xffffff
|
||||||
|
|
||||||
#define PIX_g 0x008000
|
#define PIX_g 0x008000
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue