2022-08-08 23:38:13 +00:00
|
|
|
#include "th01/hardware/vsync.hpp"
|
|
|
|
extern "C" {
|
2021-05-16 18:28:13 +00:00
|
|
|
#include "th01/hardware/frmdelay.h"
|
2022-08-08 23:38:13 +00:00
|
|
|
}
|
2020-03-11 20:19:01 +00:00
|
|
|
|
2019-11-18 07:28:39 +00:00
|
|
|
#define z_vsync_reset1() (vsync_frame = 0)
|
|
|
|
// #define z_vsync_reset2() (vsync_unused = 0)
|
|
|
|
|
2021-02-04 19:16:03 +00:00
|
|
|
void frame_delay(unsigned int frames)
|
2019-11-18 07:28:39 +00:00
|
|
|
{
|
|
|
|
while(vsync_frame < frames) {}
|
|
|
|
z_vsync_reset1();
|
|
|
|
}
|