Contiki 3.x
Enumerations | Functions
uart.h File Reference

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

Go to the source code of this file.

Enumerations

enum  SerialParity
 A list of the possible values for the parity parameter to uartInit()
 

Functions

void uartInit (uint32_t baudrate, uint8_t databits, SerialParity parity, uint8_t stopbits)
 Initialize the UART. More...
 
boolean __io_getcharNonBlocking (uint8_t *data)
 Read the input byte if any.
 

Detailed Description

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

Definition in file uart.h.

Function Documentation

void uartInit ( uint32_t  baudrate,
uint8_t  databits,
SerialParity  parity,
uint8_t  stopbits 
)

Initialize the UART.

Parameters
baudrateThe baudrate which will be used for communication. Ex: 115200
databitsThe number of data bits used for communication. Valid values are 7 or 8
parityThe 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.