/********************************  kickstart.h  ******************************
 * $Source: /home/cvs/ESP/gen2/software/msp430/include/kickstart.h,v $
 *  Copyright (C) 2004 MBARI
 *
 *  MBARI Proprietary Information. All rights reserved.
 * $Id: kickstart.h,v 1.2 2004/04/23 00:25:41 brent Exp $
 *
 * Defines the method for kickstarting the serial transmitter
 *
 *****************************************************************************/

#ifndef kickstart_h
#define kickstart_h

#include "dwarf.h"

void RX1ISR (void);

static inline void kickstart (void)
// kickstart the transmitter
{
  set8 (DWRFIRQIFG, DWRFRTS);  //make this low priority interrupt pending
}

static inline void pollInput (void)
/*
  poll for available input
  called with interrupts disabled
  useful to prevent dropping bytes during long ISRs
*/
{
  if (IFG2 & URXIFG1) RX1ISR();
}

#endif
