vga: remove V_SYNC defines
This commit is contained in:
parent
e340c3ca02
commit
4842b489d1
12
vga.cpp
12
vga.cpp
@ -97,26 +97,22 @@ void vga2()
|
|||||||
|
|
||||||
void v_sync_in()
|
void v_sync_in()
|
||||||
{
|
{
|
||||||
#define V_SYNC (1<<13)
|
while (!spg_status::vsync(holly.SPG_STATUS)) {
|
||||||
while (!(V_SYNC & holly.SPG_STATUS)) {
|
|
||||||
asm volatile ("nop");
|
asm volatile ("nop");
|
||||||
}
|
}
|
||||||
while ((V_SYNC & holly.SPG_STATUS)) {
|
while (spg_status::vsync(holly.SPG_STATUS)) {
|
||||||
asm volatile ("nop");
|
asm volatile ("nop");
|
||||||
}
|
}
|
||||||
#undef V_SYNC
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void v_sync_out()
|
void v_sync_out()
|
||||||
{
|
{
|
||||||
#define V_SYNC (1<<13)
|
while (spg_status::vsync(holly.SPG_STATUS)) {
|
||||||
while ((V_SYNC & holly.SPG_STATUS)) {
|
|
||||||
asm volatile ("nop");
|
asm volatile ("nop");
|
||||||
}
|
}
|
||||||
while (!(V_SYNC & holly.SPG_STATUS)) {
|
while (!spg_status::vsync(holly.SPG_STATUS)) {
|
||||||
asm volatile ("nop");
|
asm volatile ("nop");
|
||||||
}
|
}
|
||||||
#undef V_SYNC
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void vga()
|
void vga()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user