*/
#include "ccdbg.h"
-
-void
-ccdbg_quarter_clock(struct ccdbg *dbg)
-{
- usleep(CC_CLOCK_US / 4);
-}
+#include <time.h>
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 *