uart.c File Reference

STM32W uart drivers, supporting IAR's standard library IO routines. More...

#include "hal/micro/micro-common.h"
#include "hal/micro/cortexm3/micro-common.h"
#include "uart.h"

Go to the source code of this file.

Functions

void uartInit (int32u baudrate, int8u databits, SerialParity parity, int8u stopbits)
 Initialize the UART.

Detailed Description

STM32W uart drivers, supporting IAR's standard library IO routines.

Definition in file uart.c.


Function Documentation

void uartInit ( int32u  baudrate,
int8u  databits,
SerialParity  parity,
int8u  stopbits 
)

Initialize the UART.

Parameters:
baudrate The baudrate which will be used for communication. Ex: 115200
databits The number of data bits used for communication. Valid values are 7 or 8
parity The type of parity used for communication. See the SerialParity enum for possible values
Returns:
stopbits The number of stop bits used for communication. Valid values are 1 or 2

Definition at line 39 of file uart.c.

References halGpioConfig(), and PORTB_PIN.


Generated on Mon Apr 11 14:23:49 2011 for Contiki 2.5 by  doxygen 1.6.1