GPIO_VSYNC_CURRENT 111 core/usb_sync.c int cur_cnt = *(volatile int*)(GPIO_VSYNC_CURRENT) & 0xffff; // get the counter state at the time of sync GPIO_VSYNC_CURRENT 118 core/usb_sync.c while ((*(volatile int*)(GPIO_VSYNC_CURRENT) & 0xffff) >= cur_cnt) {};