Main Page | Modules | Data Structures | File List | Data Fields | Globals | Examples

rs232-slip.c File Reference


Detailed Description

RS232 communication device driver for the MSP430.

Author:
Adam Dunkels <adam@sics.se>
This file contains an RS232 device driver for the MSP430 microcontroller.

#include <io.h>
#include <signal.h>
#include <string.h>
#include "contiki.h"
#include "rs232.h"
#include "rs232-slip-drv.h"
#include "uip.h"
#include "uip-fw.h"
#include "lpm.h"
#include "beep.h"

Functions

void rs232_slip_init (void)
 Initalize the RS232 port and the SLIP driver.

u16_t rs232_slip_poll (void)
 Check if an incoming packet has been received.


Function Documentation

u16_t rs232_slip_poll void   ) 
 

Check if an incoming packet has been received.

This function checks the receive buffer to see if an entire packet has been received. The actual reception is handled by an interrupt handler.

Returns:
The length of the received packet, or 0 if no packet has been received.


Generated on Wed Jul 6 01:19:03 2005 for Contiki/ESB by doxygen 1.3.6