implemented basic uart functions + definitions