Commit 0f35987a authored by julien.delange's avatar julien.delange

* ocarina/resources/AADLv2/components/devices/serial-raw.aadl

   ocarina/resources/AADLv2/components/devices.aadl
   - Add new AADL serial devices to separate sending and receiving
     concerns. It allows to define two processes that will use
     two serial ports on the same board.
   - Result in three AADL component : one serial device that sends
     data, one that receives data and another that do both.



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/ocarina@1443 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 29950e8e
......@@ -117,6 +117,26 @@ properties
Provided_Virtual_Bus_Class => (classifier (ocarina_buses::raw.i));
end generic_serial.raw;
device implementation generic_serial.raw_sender
properties
Deployment::Driver_Name => "serial_linux_sender";
Device_Driver => classifier (ocarina_drivers_serial::serial_driver.linux_sender);
Initialize_Entrypoint => classifier (ocarina_drivers_serial::spg_serial_init_linux_sender);
Provided_Virtual_Bus_Class => (classifier (ocarina_buses::raw.i));
end generic_serial.raw_sender;
device implementation generic_serial.raw_receiver
properties
Deployment::Driver_Name => "serial_linux_receiver";
Device_Driver => classifier (ocarina_drivers_serial::serial_driver.linux_receiver);
Initialize_Entrypoint => classifier (ocarina_drivers_serial::spg_serial_init_linux_receiver);
Provided_Virtual_Bus_Class => (classifier (ocarina_buses::raw.i));
end generic_serial.raw_receiver;
---------------------------------
-- Generic sockets/ip driver --
---------------------------------
......
......@@ -23,6 +23,20 @@ properties
Source_Name => "__po_hi_c_driver_serial_linux_init";
end spg_serial_init_linux;
subprogram spg_serial_init_linux_sender
properties
Source_Language => C;
Source_Name => "__po_hi_c_driver_serial_linux_init_sender";
end spg_serial_init_linux_sender;
subprogram spg_serial_init_linux_receiver
properties
Source_Language => C;
Source_Name => "__po_hi_c_driver_serial_linux_init_receiver";
end spg_serial_init_linux_receiver;
thread serial_poller
end serial_poller;
......@@ -47,4 +61,15 @@ subcomponents
sender : subprogram spg_serial_sender_linux;
end serial_driver.linux;
abstract implementation serial_driver.linux_sender
subcomponents
sender : subprogram spg_serial_sender_linux;
end serial_driver.linux_sender;
abstract implementation serial_driver.linux_receiver
subcomponents
serial_linux_receiver : thread serial_poller.linux;
end serial_driver.linux_receiver;
end ocarina_drivers_serial;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment