Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
Ocarina
Commits
1efde028
Commit
1efde028
authored
Oct 06, 2019
by
yoogx
Browse files
* Generate MaxMessageSize from data Source_Data_Size
For openaadl/ocarina#233
parent
e19e0d99
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/backends/air_conf/ocarina-backends-air_conf-partitions.adb
View file @
1efde028
...
...
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--
Copyright (C) 2018 ESA & ISAE.
--
-- Copyright (C) 2018
-2019
ESA & ISAE. --
-- --
-- Ocarina is free software; you can redistribute it and/or modify under --
-- terms of the GNU General Public License as published by the Free Soft- --
...
...
@@ -299,16 +299,21 @@ package body Ocarina.Backends.AIR_Conf.Partitions is
-- MaxMessageSize
if
Get_Data_Size
(
Corresponding_Instance
(
F
))
/=
Null_Size
then
Q
:=
Make_Literal
(
XV
.
New_Numeric_Value
(
1024
,
1
,
10
));
-- Q :=
-- Make_Literal
-- (XV.New_Numeric_Value
-- (To_Bytes
-- (Get_Data_Size (Corresponding_Instance (F))),
-- 1,
-- 10));
Q
:=
Make_Literal
(
XV
.
New_Numeric_Value
(
40
+
To_Bytes
(
Get_Data_Size
(
Corresponding_Instance
(
F
))),
1
,
10
));
else
Display_Located_Error
(
Loc
(
F
),
"No data size given for data size, "
&
"assume a value of 1 byte"
,
Fatal
=>
False
,
Warning
=>
True
);
Q
:=
Make_Literal
(
XV
.
New_Numeric_Value
(
1
,
1
,
10
));
end
if
;
...
...
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