Full Duplex Eight Port Serial Driver In C?
I'm moving an XMM C program I wrote on the Prop1 over to the Prop2.
I'm using the FlexProp compiler and so far it's going well as I've moved the various Menu displays over and I'm able to invoke them using the Prop2 Console Port (P62 & P63).
Now, it's time to bring additional serial ports into the picture, including an auxiliary diagnostic port, two GPS ports, and three radio ports.
I've been looking at this full duplex 8-Port driver for the Prop2 written in Spin2:
I've compiled and run the demo2, demo4, and demo16 programs using FlexProp and they work fine.
What I would like to do is have the C equivalent functions for these, so I tried using spin2cpp to convert them without success. I got these errors:
C:\Programs\Utility\Spin2Cpp\Sample>spin2cpp --p2 --ccode mpx_demo16.spin2
C:/Programs/Utility/Spin2Cpp/Sample/mpx_fullduplexserial.spin2:189: error: muldiv64 is not a function
C:/Programs/Utility/Spin2Cpp/Sample/mpx_fullduplexserial.spin2:191: error: pinstart is not a function
C:/Programs/Utility/Spin2Cpp/Sample/mpx_fullduplexserial.spin2:205: error: pinclear is not a function
C:/Programs/Utility/Spin2Cpp/Sample/mpx_fullduplexserial.spin2:330: error: waitct is not a function
Has anyone tried doing this?
Is anyone aware of an 8-Port Full Duplex Serial driver with C functions for the Prop2 that will work under FlexProp or Catalina?
I suppose I could append the existing Spin2 code to my C code and make it work since FlexProp allows mixing of the code types.
But it seems that having pure C code functions to handle the serial I/O on these 8 ports would be much cleaner.