Name
serial_init —
initializes serial port
Synopsis
#include <serial.h>
void
;
Description
Initializes the serial port hardware and the internal API
state. Should be invoked before any other function in the serial
module is invoked. The baudrate is set to 9600bps, by default.
Dependencies
ZKit-51-v664, ZKit-51-RD2 and ZKit-51 specific: The Serial module
uses Timer 1 for baudrate generation. When the Serial module is
initialized, the Timer 1 should not be used for other purposes.