Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AADLib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
AADLib
Commits
2576287b
Commit
2576287b
authored
May 15, 2019
by
yoogx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Add driver file for sockets on native platform (Linux or macOS)
parent
63f6ddb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
0 deletions
+61
-0
src/aadl/drivers/sockets/native-sockets.aadl
src/aadl/drivers/sockets/native-sockets.aadl
+61
-0
No files found.
src/aadl/drivers/sockets/native-sockets.aadl
0 → 100644
View file @
2576287b
package
Native_Sockets
public
with
Deployment
;
with
ASN1_Configuration
;
with
Buses
::
Ethernet
;
--
This
drivers
provide
a
Socket
connectivity
based
on
BSD
socket
--
API
.
It
is
supported
on
Linux
and
macOS
device
Native_Sockets
extends
Buses
::
Ethernet
::
Generic_Ethernet
end
Native_Sockets
;
device
implementation
Native_Sockets
.
pohic
properties
Deployment
::
Driver_Name
=>
"sockets"
;
Device_Driver
=>
classifier
(
sockets_impl
.
i
);
Initialize_Entrypoint
=>
classifier
(
spg_sockets_init
);
end
Native_Sockets
.
pohic
;
------------
--
DRIVER
--
------------
--
XXX
This
driver
is
spawning
a
background
task
,
this
should
be
--
removed
abstract
sockets_impl
properties
Deployment
::
Configuration_Type
=>
classifier
(
ASN1_Configuration
::
configuration_type_ip
);
Deployment
::
Version
=>
"0.1beta"
;
Deployment
::
Help
=>
"Write your ASN.1 configuration here"
;
end
sockets_impl
;
abstract
implementation
sockets_impl
.
i
subcomponents
sender
:
subprogram
spg_eth_linux_sender
.
i
;
end
sockets_impl
.
i
;
-----------------
--
SUBPROGRAMS
--
-----------------
subprogram
spg_sockets_init
properties
Source_Language
=>
(
C
);
Source_Name
=>
"__po_hi_driver_sockets_init"
;
end
spg_sockets_init
;
subprogram
spg_eth_linux_sender
properties
Source_Language
=>
(
C
);
Source_Name
=>
"__po_hi_driver_sockets_send"
;
end
spg_eth_linux_sender
;
subprogram
implementation
spg_eth_linux_sender
.
i
end
spg_eth_linux_sender
.
i
;
end
ocarina_drivers_ip_pohic
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment