Configuration
All parameters are optional. They all have a defined default value.
The serial configuration is stored in the file "serial.xt".
Parameter name
type
Description
The output device. Supported values are; uart, spi, i2c (default=uart)
UART
SPI
Parameter name
spi_speed_hz
spi_mode
Description
SPI speed in Hz (default=1000000 [1Mhz])
SPI mode. Valid values are: 0,1,2,3 (default=0)
I2C
Parameter name
i2c_address
i2c_speed_mode
Description
The I2C device address. Address is given in hex. (default=30)
The I2C speed.Valid values are: standard (100kHz), fast (400kHz). (default=fast)
Example:
#serial.txt
#type=uart
# UART #
#uart_baud=115200
#uart_bits=8
#uart_parity=none
#uart_stopbits=1
# SPI #
#spi_speed_hz=1000000
#spi_mode=0
# I2C #
#i2c_address=30
#i2c_speed_mode=fast