content
stringlengths
23
1.05M
with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Long_Integer_Text_IO, Ada.Long_Long_Integer_Text_IO, Ada.Float_Text_IO, Ada.Long_Float_Text_IO, Ada.Long_Long_Float_Text_IO; use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Long_Integer_Text_IO, Ada.Long_Long_Integer_Text_IO, Ada.Float_Text_IO, Ada.Long_Float_Text_IO, Ada.L...
-- -- Basic test : compiling a pattern and finding the first match if any -- Syntax : test_2 pattern subject -- with Ada.Text_IO; use Ada.Text_IO; with AdaPcre; use AdaPcre; with Ada.Command_Line; use Ada.Command_Line; procedure Test_2 is Regexp : Pcre_Type; Extra : Extra_...
Pragma Ada_2012; Pragma Wide_Character_Encoding( UTF8 ); With EPL.Types; Use EPL.Types; -- Edward Parse Library. -- -- ©2015 E. Fish; All Rights Reserved. Function EPL.Bracket( Data : String; Style : Bracket ) return String;
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, Universidad Politécnica de Madrid -- -- -- -- ...
pragma Ada_2012; with Ada.Streams; package Base64.Routines.Streams with Pure, Preelaborate is function Standard_Character_To_Value is new Base64.Routines .Standard_Character_To_Value (Ada.Streams.Stream_Element); function Standard_Value_To_Character is new Base64.Routines .Standard_Value_To...
----------------------------------------------------------------------- -- render -- XHTML Rendering example -- Copyright (C) 2010, 2017, 2020, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use thi...
with HAL; use HAL; with STM32.GPIO; use STM32.GPIO; with STM32.USARTs; use STM32.USARTs; with STM32.Device; use STM32.Device; package serial is TX_Pin : constant GPIO_Point := PB7; RX_Pin : constant GPIO_Point := PB6; procedure Initialize_UART_GPIO; procedure Initialize(baud: UInt32);...
with Ada.Text_IO, Ada.Integer_Text_IO; use Ada.Text_IO, Ada.Integer_Text_IO; package body Data is procedure Input (V : out Vector; Value : Integer) is begin for I in 1..N loop V(I):= Value; end loop; end Input; procedure Input (MA : out Matrix; Value : I...
-- @(#)File: csv.ads -- @(#)Last changed: Aug 6 2015 10:07:13 -- @(#)Purpose: Character Separated Value (CSV) file support -- @(#)Author: Marc Bejerano <marcbejerano@gmail.com> -- @(#)Copyright: Copyright (C) 2015, Marc Bejerano, All Rights Reserved -- @(#)Product: None -- @...
WITH Calendar; PROCEDURE FunnyBug IS -- minimal version of a student error on which adasem choked. BEGIN NULL; EXCEPTION -- note a careless writing of Time_Error as Time.Error WHEN Calendar.Time.Error => NULL; END FunnyBug;
pragma License (Unrestricted); -- extended unit package Ada.Numerics.Distributions is -- Some kinds of distributions of random numers. pragma Pure; -- Simple distributions generic type Source is mod <>; type Target is (<>); function Linear_Discrete (X : Source) return Target; -- [0,...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Ada.Calendar; use Ada.Calendar; package Messages is type Message is tagged record Timestamp : Time; end record; procedure Print(Item : Message); procedure Display(Item : Message'Class); type Sensor_Message is new Message with record Sensor_Id : Integer; Reading : Float; end r...
package body agar.gui.widget is use type c.int; function size_allocate (widget : widget_access_t; alloc : size_alloc_t) return c.int; pragma import (c, size_allocate, "AG_WidgetSizeAlloc"); function size_allocate (widget : widget_access_t; alloc : size_alloc_t) return boolean is begin ...
-- MIT License -- -- Copyright (c) 2020 Max Reznik -- -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and associated documentation files (the "Software"), -- to deal in the Software without restriction, including without limitation -- the rights to use, copy, mo...
-- { dg-do run } -- { dg-options "-gnato" } with Text_IO; use Text_IO; procedure testint is function m1 (a, b : short_integer) return integer is begin return integer (a + b); end m1; f : integer; begin f := m1 (short_integer'Last, short_integer'Last); end testint;
with Ada.Assertions; use Ada.Assertions; with Ada.Text_IO; use Ada.Text_IO; with GNAT.OS_Lib; use GNAT.OS_Lib; with Interfaces.C; use Interfaces.C; with Rejuvenation.File_Utils; use Rejuvenation.File_Utils; with Rejuvenation.Indentation; use Rejuvenatio...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Assertions; pragma Unreferenced (Ada.Assertions); package ParentPackage.ChildPackage is procedure ChildDummy; end ParentPackage.ChildPackage;
with Ada.Containers.Ordered_Sets; with Ada.Text_IO; use Ada.Text_IO; procedure Unique_Set is package Int_Sets is new Ada.Containers.Ordered_Sets(Integer); use Int_Sets; Nums : array (Natural range <>) of Integer := (1,2,3,4,5,5,6,7,1); Unique : Set; Set_Cur : Cursor; Success : Boolean; begin for I...
with Ada.Integer_Text_IO; with Ada.Text_IO; with Ada.Unchecked_Deallocation; procedure Euler18 is type Node is record Value: Natural := 0; Max_Path: Integer := -1; Left, Right: access Node := null; end record; function Max_Path(N: in out Node) return Natural is L, R...
with Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; with Blade; with Blade_Types; with GA_Maths; with GA_Utilities; with Metric; use Metric; with Multivectors; use Multivectors; with Multivector_Type; procedure LC_Test is use Blade_Types; BV_Names : Basis_Vector_Names; no_bv : Multi...
with Ada.Text_IO; with Partitions; procedure Main is package Natural_IO is new Ada.Text_IO.Integer_IO (Natural); Example_Partitions : Partitions.Partition_Sets.Set; begin Ada.Text_IO.Put_Line ("Partitions for (2, 0, 2):"); -- create partition Example_Partitions := Partitions.Create_Partitions (Args => (2...
package Return4_Pkg is type Rec is record I1, I2, I3 : Integer; end record; function Get_Value (I : Integer) return Rec; end Return4_Pkg;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- The Village of Vampire by YT, このソースコードはNYSLです with Ada.Formatting; package Tabula is pragma Pure; type Static_String_Access is access constant String; for Static_String_Access'Storage_Size use 0; -- string of Natural without spacing function Image is new Ada.Formatting.Integer_Image ( Natural, Signs...
with glx.BufferSwapComplete, glx.PbufferClobberEvent; package glx.Event is type long_Array is array (C.size_t range <>) of aliased C.Long; type Kind is (pBufferClobber, BufferSwapComplete, Pad); type Item (Kind : Event.Kind := Event.Kind'First) is record ...
package Simple_Parse is -- a very simplistic parser, useful to split a string into words function Next_Word(S: String; Point: in out Positive) return String; -- a "word" is a sequence of non-space characters -- if S(Point .. S'Last) holds at least one word W -- then Next_Word increments Point by...
-- @(#)File: properties.adb -- @(#)Last changed: Mar 18 2015 10:30:00 -- @(#)Purpose: Java properties file support -- @(#)Author: Marc Bejerano <marcbejerano@gmail.com> -- @(#)Copyright: Copyright (C) 2015, Marc Bejerano, All Rights Reserved -- @(#)Product: None -- @(#)Licen...
pragma License (Unrestricted); -- runtime unit with System.Storage_Elements; package System.Standard_Allocators is pragma Preelaborate; -- heap (s-memory.ads) function Allocate ( Size : Storage_Elements.Storage_Count) return Address with Export, Convention => C, External_Name => "__gnat_m...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Math_2D.Types; generic with package Types is new Math_2D.Types (<>); package Math_2D.Vectors is function Inner_Product (Vector_A : in Types.Vector_t; Vector_B : in Types.Vector_t) return Types.Real_Type'Base renames Types."*"; function Scalar_Product (Vector_A : in Types.Vector_t; V...
----------------------------------------------------------------------- -- util-properties-json-tests -- Test reading JSON file into properties -- Copyright (C) 2013, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); ...
with ada.text_io; with ada.command_line; with ada.strings.fixed; with gnat.os_lib; with ada.containers.vectors; with numbers; use numbers; with strings; use strings; procedure d0xfa is use type ada.text_io.count; use type byte; use type word; PROGRAMM_NAME : constant string := "d0xfa"; file : ada.text_io....
package body Wide_Boolean_Pkg is procedure Modify (LH : in out TUINT32; LB : in out TBOOL) is begin LH := 16#12345678#; LB := TRUE; end; end Wide_Boolean_Pkg;
with Ada.Integer_Text_IO; with Ada.Text_IO; package body Problem_01 is package IO renames Ada.Text_IO; package I_IO renames Ada.Integer_Text_IO; procedure Solve is sum : Integer := 0; begin for i in 1 .. 999 loop if i mod 3 = 0 or i mod 5 = 0 then sum := sum + i; en...
pragma License (Unrestricted); with Ada.Text_IO; package Ada.Long_Long_Float_Text_IO is new Text_IO.Float_IO (Long_Long_Float);
with AdaM.Factory; package body AdaM.Context is -- Storage Pool -- record_Version : constant := 1; max_Contexts : constant := 5_000; package Pool is new AdaM.Factory.Pools (".adam-store", "contexts", ...
-- { dg-do run } -- { dg-options "-gnatp -O2" } with Raise_Ce; procedure Handle_And_Return is begin begin Raise_CE; return; exception when others => null; end; begin Raise_CE; return; exception when others => null; end; end;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Numerics.Float_Random; use Ada.Numerics.Float_Random; with Ada.Text_IO; use Ada.Text_IO; with Synchronization.Generic_Mutexes_Array; procedure Test_Dining_Philosophers is type Philosopher is (Aristotle, Kant, Spinoza, Marx, Russel); package Fork_Arrays is new Synchronization.Generic_Mut...
pragma Warnings (Off); pragma Style_Checks (Off); with GLOBE_3D.tri_Mesh; with GLOBE_3D.Sprite; with GL.Textures; with GL.Geometry; with ada.unchecked_Deallocation; package Terrain is use Globe_3d; function to_Matrix (tga_Heights : in String) return Matrix; type height_Map (row_Count, ...
with Ada.Integer_Text_IO; with Ada.Text_IO; with PrimeUtilities; package body Problem_23 is package IO renames Ada.Text_IO; package I_IO renames Ada.Integer_Text_IO; procedure Solve is Maximum_Value : constant Integer := 28123; subtype Problem_Range is Integer range 1 .. Maximum_Value; packag...
with Interfaces; use Interfaces; package body Fmt.Generic_Signed_Int_Argument is function To_Argument (X : Signed_Int_Type) return Argument_Type'Class is begin return Signed_Int_Argument_Type'(Value => X, others => <>); end To_Argument; function "&" (Args : Arguments; X : Signed_Int_Type) return ...
-- -- Provides Kafka functionality to consume data -- package Kafka.Consumer is -- -- Redirect the main poll queue to the Kafka Consumer queue. It is not -- permitted to call Kafka.Poll after directing the main queue with Poll_Set_Consumer -- -- librdkafka equivalent: rd_kafka_poll_set_consumer ...
----------------------------------------------------------------------- -- net-protos-arp -- ARP Network protocol -- Copyright (C) 2016 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except...
-- Copyright (C) 2020 Glen Cornell <glen.m.cornell@gmail.com> -- -- This program is free software: you can redistribute it and/or -- modify it under the terms of the GNU General Public License as -- published by the Free Software Foundation, either version 3 of the -- License, or (at your option) any later versi...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Meta.Classes; with Meta.Read; package Meta.Writes is procedure Write_Elements (Vector : Meta.Read.Class_Vectors.Vector); procedure Write_Elemen...
-- dates.adb -- -- A program to read dates from the keyboard in the form -- day_no month_no e.g. 30 8 -- and output the next day's date in the form -- day_no month e.g. 31 AUG -- Assume it is not a leap year. -- The program loops until a zero day number is entered. -- -- version 2.0 8-Mar-07 w...
-- Lambda Calculus interpreter -- --------------------------- -- Parses and reduces Lamdba Calculus statements. -- -- Use a simple recursive parser for the simplest computer language. -- It would be nice to build an ADT for Instructions and hide the Multiway tree implementation. -- -- Source: -- lambda - [This...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
pragma License (Unrestricted); with Ada.Strings.Generic_Unbounded.Generic_Hash; with Ada.Strings.Wide_Wide_Hash; function Ada.Strings.Wide_Wide_Unbounded.Wide_Wide_Hash is new Unbounded_Wide_Wide_Strings.Generic_Hash (Wide_Wide_Hash); pragma Preelaborate (Ada.Strings.Wide_Wide_Unbounded.Wide_Wide_Hash);
package Derived_Type3_Pkg is procedure Proc1; procedure Proc2; end Derived_Type3_Pkg;
pragma License (Unrestricted); with Ada.Strings.Generic_Unbounded.Generic_Hash; with Ada.Strings.Hash; function Ada.Strings.Unbounded.Hash is new Unbounded_Strings.Generic_Hash (Strings.Hash); pragma Preelaborate (Ada.Strings.Unbounded.Hash);
with STM32F4.FMC; use STM32F4.FMC; package STM32F4.SDRAM is Bank_Address : constant := 16#D000_0000#; procedure Initialize; private SDRAM_MEMORY_WIDTH : constant := FMC_SDMemory_Width_16b; SDRAM_CAS_LATENCY : constant := FMC_CAS_Latency_3; SDCLOCK_PERIOD : constant := FMC_SDClock_Period_2; S...
-- Monty Hall Game with Ada.Text_Io; use Ada.Text_Io; with Ada.Float_Text_Io; use Ada.Float_Text_Io; with ada.Numerics.Discrete_Random; procedure Monty_Stats is Num_Iterations : Positive := 100000; type Action_Type is (Stay, Switch); type Prize_Type is (Goat, Pig, Car); type Door_Index is range 1..3; p...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
with GNAT.Spitbol; with AWS.Status; use AWS.Status; with Gprslaves.DB.JSON; with GNATCOLL.JSON; with AWS.Messages; with Gprslaves.DB; use Gprslaves.DB; package body GPR_Tools.Gprslaves.Nameserver.Server is Store : Gprslaves.DB.Table; -------------- -- Register -- -------------- procedure Register (Serve...
with Ada.Strings.Unbounded; with SDL; with SDL.Timers; with SDL.Video.Pixel_Formats; with SDL.Video.Surfaces; with SDL.Video.Windows; with SDL.Video.Windows.Makers; procedure Create_Window is package US renames Ada.Strings.Unbounded; function "+" (S : String) return US.Unbounded_String renames US.To_Unbo...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is begin if 0=1 then Q(0); else Q(1); elsif 1=2 then Q(2); end if; end;
procedure Gnome_Sort(Item : in out Collection) is procedure Swap(Left, Right : in out Element_Type) is Temp : Element_Type := Left; begin Left := Right; Right := Temp; end Swap; I : Integer := Index'Pos(Index'Succ(Index'First)); J : Integer := I + 1; begin while I <= Index'Pos(Index...
with Ada.Numerics.Discrete_Random, Ada.Text_IO; procedure Naive_Random is type M_1000 is mod 1000; package Rand is new Ada.Numerics.Discrete_Random(M_1000); Gen: Rand.Generator; procedure Perform(Modulus: Positive; Expected, Margin: Natural; Passed: out boolean) is Low: Natural...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <denkpadje@gmail.com> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/L...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
procedure Generic_Heapsort(Item : in out Collection) is procedure Swap(Left : in out Element_Type; Right : in out Element_Type) is Temp : Element_Type := Left; begin Left := Right; Right := Temp; end Swap; procedure Sift_Down(Item : in out Collection) is Root : Integer := Index_Type'...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Copyright 2019 Simon Symeonidis (psyomn) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable la...
-- Institution: Technische Universitaet Muenchen -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Module: Software Configuration -- -- Authors: Martin Becker (becker@rcs.ei.tum.de) with STM32.Timers; with STm32.Device; -- @summary -- Target-specific types for the hardware timers in Ada...
----------------------------------------------------------------------- -- awa-counters-beans -- Counter bean definition -- Copyright (C) 2015, 2016, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not u...
----------------------------------------------------------------------- -- css-analysis-rules -- CSS Analysis Rules -- Copyright (C) 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exce...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- -- -- ...
-- E28002B.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
procedure test1 is type rec (k : positive := 1) is record name : string(1 .. k); end record; -- ok when discriminant has no default value and discriminant -- constraint specified explicity on the declaration v1 : rec; -- also crashes with declaration below -- v1 : rec(100); begin null; end te...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Extraction.Node_Edge_Types; with Extraction.Utilities; package body Extraction.Decl_Types is use type LALCO.Ada_Node_Kind_Type; function Get_Subp_Spec (Basic_Decl : LAL.Basic_Decl) return LAL.Base_Subp_Spec; function Get_Subp_Spec (Basic_Decl : LAL.Basic_Decl) return LAL.Base_Subp_Spec is ...
-- -- -- package Copyright (c) Dmitry A. Kazakov -- -- GNAT.Sockets.Connection_State_Machine. Luebeck -- -- HTTP_Server Winter, 2013 -- -- Interface ...
pragma License (Unrestricted); with Ada.Numerics.Short_Complex_Types; with Ada.Text_IO.Complex_IO; package Ada.Short_Complex_Text_IO is new Text_IO.Complex_IO (Numerics.Short_Complex_Types);
----------------------------------------------------------------------- -- servlet-security-oauth - OAuth2 servlets -- Copyright (C) 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exce...
-- Copyright 2016-2019 NXP -- All rights reserved.SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from LPC55S6x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package NXP_SVD.SYSCON is pragma Preelaborate; ...
-- This spec has been automatically generated from STM32L4x1.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.USART is pragma Preelaborate; --------------- -- Registers -- --------------- -- CR1_DEDT array type C...
pragma License (Unrestricted); with System.Tasking; package System.Task_Primitives.Operations is pragma Preelaborate; procedure Abort_Task (T : System.Tasking.Task_Id); end System.Task_Primitives.Operations;
-- Lines starting with `--` are treated as comments. -- Compile with `gnatmake hello_world.adb`, then run the executable with -- `./hello_world` -- Import the Ada.Text_IO package with Ada.Text_IO; -- `procedure` indicates the start of the subprogram procedure Hello_World is -- Declare variables here begin -- Fu...
declare X : Integer; -- Allocated on the stack begin ... end; -- X is freed
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- util-dates-tests - Test for dates -- Copyright (C) 2018, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
pragma Ada_2012; pragma Style_Checks (Off); pragma Warnings ("U"); with Interfaces.C; use Interfaces.C; with machine_udefault_types_h; package sys_ustdint_h is subtype int8_t is machine_udefault_types_h.uu_int8_t; -- /opt/gcc-11.2.0/arm-eabi/include/sys/_stdint.h:20 subtype uint8_t is machine_udefault_types_...
-- Copyright (C) 2019 Thierry Rascle <thierr26@free.fr> -- MIT license. Please refer to the LICENSE file. with Apsepp.Test_Node_Class.Generic_Case_And_Suite_Run_Body; package Apsepp.Test_Node_Class.Case_Stub is type Test_Case_Stub is limited new Test_Node_Interfa with private with Type_Invariant'Class => ...
-- Ada_GUI implementation based on Gnoga. Adapted 2021 -- -- -- GNOGA - The GNU Omnificent GUI for Ada -- -- -- -- G N O G A . ...
with Ada.Assertions; use Ada.Assertions; with Device; use Device; package body Memory.DRAM is function Create_DRAM(cas_cycles : Time_Type; rcd_cycles : Time_Type; rp_cycles : Time_Type; wb_cycles : Time_Type; ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Containers.Vectors; with Ada.Streams.Stream_IO; with Ada.Unchecked_Deallocation; with GNAT.SHA1; with League.Stream_Element...
-- C45220A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
-- Simple test of "*", "/", "+", and "-" using random arguments. -- Doesn't test endpoints very well. with Extended_Real; with Extended_Real.e_Rand; with Extended_Real.IO; with Text_IO; use Text_IO; procedure e_real_tst_2 is type Real is digits 15; package ext is new Extended_Real (Real); use ext; pa...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- asf-parts -- ASF Parts -- Copyright (C) 2011, 2012 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compli...
-- This spec has been automatically generated from cm4f.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; -- 24Bit System Tick Timer for use in RTOS package Cortex_M_SVD.SysTick is pragma Preelaborate; --------------- -- Registers -- ----...
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Ada.Characters.Latin_1; with Ada.Directories; with Ada.Exceptions; with Ada.Calendar; with Ada.Text_IO; with File_Operations; with Port_Specification.Buildsheet; with Port_Specification.Transform; with Port_Sp...
with NXP.Device; use NXP.Device; with NXP.GPIO; use NXP.GPIO; package NXP.Board is pragma Elaborate_Body; subtype User_LED is GPIO_Point; Red_LED : User_LED renames P1_6; Green_LED : User_LED renames P1_7; Blue_LED : User_LED renames P1_4; LEDs : GPIO_Points := Red_LED & Gree...