#!/bin/bash

logger "Setting UART baud rates"

# UART for printf's (read) and our kernel logs (write)
# This is the same speed printf on node uses.
# During boot, uboot and kernel use 57600 baudrate.
stty -F /dev/ttyS0 speed 230400 -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke

# UART for packet, two-directional communication
# TODO
stty -F /dev/ttyS1 speed 115200 crtscts -echo -echoe -echok -echoctl -echoke
