text
stringlengths
0
234
begin
if not Program.Element_Vectors.Has_Element (Cursor) then
return null;
end if;
declare
Result : constant Discrete_Range_Vector_Access :=
new (Self.Subpool)
Program.Nodes.Discrete_Range_Vectors.Vector'
(Program.Nodes.Discrete_Range_Vectors.Create (Each));
begin
return Program.Elements.Discrete_Ranges
.Discrete_Range_Vector_Access (Result);
Function Definition: not overriding function Create_Discriminant_Association_Vector
Function Body: (Self : Element_Vector_Factory;
Each : Program.Element_Vectors.Iterators.Forward_Iterator'Class)
return Program.Elements.Discriminant_Associations
.Discriminant_Association_Vector_Access
is
Cursor : constant Program.Element_Vectors.Element_Cursor := Each.First;
begin
if not Program.Element_Vectors.Has_Element (Cursor) then
return null;
end if;
declare
Result : constant Discriminant_Association_Vector_Access :=
new (Self.Subpool)
Program.Nodes.Discriminant_Association_Vectors.Vector'
(Program.Nodes.Discriminant_Association_Vectors.Create (Each));
begin
return Program.Elements.Discriminant_Associations
.Discriminant_Association_Vector_Access (Result);
Function Definition: not overriding function Create_Discriminant_Specification_Vector
Function Body: (Self : Element_Vector_Factory;
Each : Program.Element_Vectors.Iterators.Forward_Iterator'Class)
return Program.Elements.Discriminant_Specifications
.Discriminant_Specification_Vector_Access
is
Cursor : constant Program.Element_Vectors.Element_Cursor := Each.First;
begin
if not Program.Element_Vectors.Has_Element (Cursor) then
return null;
end if;
declare
Result : constant Discriminant_Specification_Vector_Access :=
new (Self.Subpool)
Program.Nodes.Discriminant_Specification_Vectors.Vector'
(Program.Nodes.Discriminant_Specification_Vectors.Create
(Each));
begin
return Program.Elements.Discriminant_Specifications
.Discriminant_Specification_Vector_Access (Result);
Function Definition: procedure Init is
Function Body: RCC : RCC_Peripheral renames RCC_Periph;
begin
if PLL_Source = HSE_Input then
RCC.CR.HSEON := 1;
while RCC.CR.HSERDY = 0 loop
null;
end loop;
end if;
RCC.CFGR := (
PLLMUL => UInt4 (PLL_Mul),
PLLSRC => (
case PLL_Source is
when HSI_Input => 1,
when HSE_Input => 1),
others => <>);
Function Definition: procedure Init is
Function Body: RCC : RCC_Peripheral renames RCC_Periph;
begin
if PLL_Source = HSE_Input then
RCC.CR.HSEON := 1;
while RCC.CR.HSERDY = 0 loop
null;
end loop;
end if;
Function Definition: procedure Wait_For_Trigger is
Function Body: begin
STM32GD.EXTI.IRQ.IRQ_Handler.Wait;
end Wait_For_Trigger;
procedure Clear_Trigger is
begin
STM32GD.EXTI.IRQ.IRQ_Handler.Reset_Status (Interrupt_Line_Number);
end Clear_Trigger;
function Triggered return Boolean is
begin
return False;
Function Definition: procedure Init is
Function Body: begin