Writing a Line discpline driver to talk to a stm32 controller