Commit eda5f6a5 authored by Maxime Perrotin's avatar Maxime Perrotin

Add driver configuration support for POHIAda

parent c4b50c8f
......@@ -131,8 +131,13 @@ subcomponents
@@TABLE'ALIGN_ON(":")@@
@_Device_Node_Name_@_@_Device_Names_@ : device @_Device_Classifier_@
{
@@IF@@ @_Use_POHIC_@
Source_Text => ("../DriversConfig/@_Device_Partition_@/DeviceConfig-@_Device_Node_Name_@-@_Device_Names_@.c");
Type_Source_Name => "pohidrv_@_Device_Node_Name_@_@_Device_Names_@";
@@ELSE@@
Source_Text => ("../DriversConfig/@_Device_Partition_@/DeviceConfig-@_Device_Node_Name_@-@_Device_Names_@.ads");
Type_Source_Name => "Taste_Drivers_Configuration.pohidrv_@_Device_Node_Name_@_@_Device_Names_@";
@@END_IF@@
};
@@END_TABLE@@
@@-- Specify the connections for distributed and TSP systems
......
......@@ -85,7 +85,11 @@ air:
@@IF@@ @_Bus_Names'Length_@ > 0
DriversConfig/drivers_config.h: drivers_config.asn
mkdir -p DriversConfig
asn1.exe -o DriversConfig -c drivers_config.asn @_REPLACE_ALL(,/ ):UNIQ(,):Device_ASN1_File_@
@@IF@@ @_Use_POHIC_@@
mono $(shell which asn1.exe) -o DriversConfig -c drivers_config.asn @_REPLACE_ALL(,/ ):UNIQ(,):Device_ASN1_File_@
@@ELSE@@
mono $(shell which asn1.exe) -o DriversConfig -Ada drivers_config.asn @_REPLACE_ALL(,/ ):UNIQ(,):Device_ASN1_File_@
@@END_IF@@
@@ELSE@@
DriversConfig/drivers_config.h: # Not a distributed system
@@END_IF@@
......
......@@ -56,6 +56,10 @@ project @_CAPITALIZE:Name_@ is
@@IF@@ @_Need_Ada_@ = TRUE
"../../dataview/Ada",
@@END_IF@@
@@IF@@ @_VP_Name_@ = "" and @_In_Port_Names'Length_@ > 0
@@-- Detect distributed systems (no virtual processor) - add DriversConfig folder
"../DriversConfig",
@@END_IF@@
@@TABLE@@
@@IF@@ @_Block_Languages_@ = SDL
"../../@_LOWER:Block_Names_@/SDL/code",
......
......@@ -45,7 +45,7 @@
-- Configuration data for device drivers in distributed systems
-- This file was generated automatically by taste/kazoo
@@IF@@ @_Bus_Names'Length_@ > 0
Taste-Drivers-Configuation DEFINITIONS ::=
Taste-Drivers-Configuration DEFINITIONS ::=
BEGIN
@@INLINE(IMPORTS )(\n )(;)@@
@@TABLE@@
......
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