X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=ccdbg-io.c;h=765bde845cabedcd643fe270b5b3c0363063f3e7;hp=c69fc0d816751172b190393a96de95bbc047f83d;hb=807e2adacb025af77bb53c03209e9c8e0d7a5f95;hpb=8c879bf51c14a5928135d59211facd72f6a32808 diff --git a/ccdbg-io.c b/ccdbg-io.c index c69fc0d8..765bde84 100644 --- a/ccdbg-io.c +++ b/ccdbg-io.c @@ -17,17 +17,15 @@ */ #include "ccdbg.h" - -void -ccdbg_quarter_clock(struct ccdbg *dbg) -{ - usleep(CC_CLOCK_US / 4); -} +#include void ccdbg_half_clock(struct ccdbg *dbg) { - usleep(CC_CLOCK_US / 2); + struct timespec req, rem; + req.tv_sec = (CC_CLOCK_US / 2) / 1000000; + req.tv_nsec = ((CC_CLOCK_US / 2) % 1000000) * 1000; +// nanosleep(&req, &rem); } struct ccdbg *