IoT Drivers  v3.3.0 (S2022)
Engineering in Software Technology
Functions to create and initialize the driver.

How to initialise the driver. More...

Collaboration diagram for Functions to create and initialize the driver.:

Functions

void stdio_initialise (uint8_t usartNo)
 Initialise the stdio driver. More...
 

Detailed Description

How to initialise the driver.

Function Documentation

◆ stdio_initialise()

void stdio_initialise ( uint8_t  usartNo)

Initialise the stdio driver.

Initialise the driver.

Connects stdin and stdout to the usartNo given.

The USART are setup like this: 57600 baud, 8-bit Data bits, 1 Stop bit and No parity.

After this function is called, it is possible to use printf(), scanf etc.

Note
This function must be called before using printf(), scanf etc.
Remember to enable global interrupt by calling sei() after the driver is initialised.
Parameters
[in]usartNono of the USART to setup and connect to stdin and stdout [0..3].