Commit 227dde78 authored by jdelange's avatar jdelange
Browse files

* ocarina/resources/AADLv2/components/devices/leon-eth.aadl.ignore

   ocarina/resources/AADLv2/components/devices/leon-eth.aadl
   - Add specification of the LEON ethernet driver



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/ocarina@3070 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 8137359f
......@@ -77,6 +77,33 @@ public
end generic_keyboard.linux;
-------------------
-- LEON ETHERNET --
-------------------
device leon_ethernet
features
ethbus : requires bus access ocarina_buses::ip.i;
end leon_ethernet;
device implementation leon_ethernet.raw
properties
Deployment::Driver_Name => "eth_leon";
Device_Driver => classifier (ocarina_drivers_leon_eth::eth_driver.leon);
Initialize_Entrypoint => classifier (ocarina_drivers_leon_eth::spg_leon_eth_init);
Provided_Virtual_Bus_Class => (classifier (ocarina_buses::pohi.c));
end leon_ethernet.raw;
device implementation leon_ethernet.raw_sender
properties
Deployment::Driver_Name => "eth_leon_sender";
Device_Driver => classifier (ocarina_drivers_leon_eth::eth_driver.leon_sender);
Initialize_Entrypoint => classifier (ocarina_drivers_leon_eth::spg_leon_eth_init);
Provided_Virtual_Bus_Class => (classifier (ocarina_buses::pohi.c));
end leon_ethernet.raw_sender;
------------------
-- RASTA SERIAL --
------------------
......
package ocarina_drivers_leon_eth
public
with Deployment;
with ocarina_buses;
with ocarina_drivers;
subprogram spg_leon_eth_poller
properties
Source_Language => C;
Source_Name => "__po_hi_c_driver_eth_leon_poller";
end spg_leon_eth_poller;
subprogram spg_leon_eth_sender
properties
Source_Language => C;
Source_Name => "__po_hi_c_driver_eth_leon_sender";
end spg_leon_eth_sender;
subprogram spg_leon_eth_init
properties
Source_Language => C;
Source_Name => "__po_hi_c_driver_eth_leon_init";
end spg_leon_eth_init;
thread thr_poller
end thr_poller;
thread implementation thr_poller.i
calls
mycall : {
pspg : subprogram spg_leon_eth_poller;
};
properties
Period => 1000ms;
Dispatch_Protocol => Periodic;
end thr_poller.i;
abstract eth_driver
properties
Deployment::Configuration_Type => classifier (ocarina_drivers::configuration_type_ip);
Deployment::Version => "0.1beta";
Deployment::Help => "Write your ASN.1 configuration here";
end eth_driver;
abstract implementation eth_driver.leon
subcomponents
eth_leon_poller : thread thr_poller.i;
sender : subprogram spg_leon_eth_sender;
end eth_driver.leon;
abstract implementation eth_driver.leon_sender
subcomponents
sender : subprogram spg_leon_eth_sender;
end eth_driver.leon_sender;
end ocarina_drivers_leon_eth;
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