I'm writing a custom Raspberry Pi UART module for a school project and I think that my module is somehow conflicting with the default UART driver. Every time I write something into ttyAMA0 using fwrite, it returns a value equal to the length of the data I wrote, even though my module's write function always returns zero. Furthermore, when I make a new ttyAMA1 file using mknod and try writing into it, my module responds, but also returns the length of the data. So, my question would be how to disable the default RPI UART driver/module?
Module and test application code (transmit funcionality only): https://github.com/mixr26/sppurv-projekat
Any help would be much appreciated!