nasa / fprime

F´ - A flight software and embedded systems framework
https://fprime.jpl.nasa.gov
Apache License 2.0
10.02k stars 1.29k forks source link

What to use instead of Drv/SerialDriverPorts #2595

Closed LincolnSand closed 5 months ago

LincolnSand commented 5 months ago

So, we have some code that uses an old version of fprime:

        @ output port for writing commands over UART to device
        output port serialWrite: Drv.SerialWrite

        @ receive serial data port to read data from UART
        async input port serialRecv: Drv.SerialRead

        @ serial buffer port for device to write into over UART
        output port serialBufferOut: Fw.BufferSend

But Drv/SerialDriverPorts no longer seems to exist? Relevant error:

           output port serialWrite: Drv.SerialWrite
                                 ^
error: undefined symbol Drv

I cannot find any update logs or issues that describe what should be used instead. Do you have any recommendations of what to use instead? Should we be using Drv/LinuxUartDriver now? I'm mostly just wondering how to migrate the above code to newer versions of fprime. Thank you for any help and I apologize if this question is stupid!

thomas-bc commented 5 months ago

I'm going to convert this issue into a Discussion as it seems to fit that category