#include <msp430x14x.h>
#include <stdio.h>

#include "basic.h"
#include "errnum.h"
#include "eventq.h"
#include "rtc.h"
#include "util.h"
#include "cmdparse.h"
#include "poll.h"

static int delaySec = 0;
static int countSec = 0;
static boolean delayEnable = true;

_MONITOR void delayPeriodicTick(void);

int delayInit(void)
{
  eventqRegisterHandler(EVENTQ_EVENT_DELAYTICK, &delayPeriodicTick);
  return 0;
}

_MONITOR void delayPeriodicTick(void)
{
#if 0
  // raise a periodic event
  if ((delayEnable == true) && (count++ >= period)) {
    eventqFireEvent(EVENTQ_EVENT_TIMER);
    count = 1;
  }
#endif
}

int delayWait(int seconds)
{
  return -1;  
}


