simpletext library  v0.98
Compact variations of put/get write/read and print/scan for smaller program sizes
Functions
serial_open.c File Reference
#include <stdlib.h>
#include <propeller.h>
#include "serial.h"

Functions

serialserial_open (int rxpin, int txpin, int mode, int baudrate)

Detailed Description

Opens a serial module.

Copyright (c) 2013, Parallax Inc. Written by Steve Denson

Function Documentation

serial* serial_open ( int  rxpin,
int  txpin,
int  mode,
int  baudrate 
)

Initializes the simple serial terminal. Equivalent to a start function which runs assembly in a cog. If the txpin is < 0 or > 31, the pin will not be set to output.

Parameters
rxpinis pin number 0 to 31 for receive input
txpinis pin number 0 to 31 for transmit output
modeis unused mode field (for FdSerial compatibility)
baudrateis frequency of bits ... 115200, 57600, etc...
Returns
device term pointer for use with other functions.