content
stringlengths
23
1.05M
-- This spec has been automatically generated from STM32F105xx.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with System; package STM32.ADC is pragma Preelaborate; --------------- -- Registers -- --------------- ----------------- -- SR_Register -- ----------------- subty...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Institution: Technische Universität München -- Department: Real-Time Computer Systems (RCS) -- Project: StratoX -- Authors: Martin Becker (becker@rcs.ei.tum.de) with Ada.Real_Time; use Ada.Real_Time; with HIL; use HIL; -- @summary -- SPI protocol to CYPRESS FM25v0x series (ferroelectric RA...
------------------------------------------------------------------------------ -- -- -- J E W L . M E S S A G E _ H A N D L I N G -- -- -- ...
----------------------------------------------------------------------- -- util-beans-ranges-tests -- Unit tests for bean range definitions -- Copyright (C) 2011 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ma...
----------------------------------------------------------------------- -- util-streams-raw -- Raw streams for Unix based systems -- Copyright (C) 2011, 2013, 2016, 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License...
------------------------------------------------------------------------------ -- -- -- ASIS APPLICATION TEMPLATE COMPONENTS -- -- -- -- ...
-- Copyright (c) 2015-2017 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Matreshka.Internals.Unicode; generic with function To_Class (Value : Matreshka.Internals.Unicode.Code_Point) ...
-- RUN: %llvmgcc -c %s procedure Array_Ref is type A is array (Natural range <>, Natural range <>) of Boolean; type A_Access is access A; function Get (X : A_Access) return Boolean is begin return X (0, 0); end; begin null; end;
with vole_lex_dfa; use vole_lex_dfa; with text_io; use text_io; package vole_lex_io is user_input_file : file_type; user_output_file : file_type; NULL_IN_INPUT : exception; AFLEX_INTERNAL_ERROR : exception; UNEXPECTED_LAST_MATCH : exception; PUSHBACK_OVERFLOW : exception; AFLEX_SCANNER_JAMMED : exception; type eob_ac...
-- Project: StratoX -- Authors: Emanuel Regnath (emanuel.regnath@tum.de) -- Martin Becker (becker@rcs.ei.tum.de) -- -- Description: -- allows logging of structured messages at several logging levels. -- -- Usage: -- Logger.init -- initializes the Logger -- Logger.log_console (Logger.INFO, "Pro...
----------------------------------------------------------------------- -- asf.servlets.ajax -- AJAX servlet -- Copyright (C) 2011 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 c...
IDH_network_lights NetPerSec IDH_connection_tab Connection Tab IDH_connection_tab Connection Tab IDH_options_tab Options Tab IDH_stats_tab Stats Tab IDH_colors_tab Colors Tab IDH_glossary Glossary IDH_requirements_and_limitations Requirements and Limitations IDH_configuration Configuration IDH_netpersec_i...
package PolyPaver.Interval is --# function Hull(Low,High : Float) return Float; --# function Contained_In(Object,Subject : Float) return Boolean; end PolyPaver.Interval;
with Libadalang.Analysis; use Libadalang.Analysis; with Rejuvenation.Find_And_Replacer; use Rejuvenation.Find_And_Replacer; with Rejuvenation.Navigation; use Rejuvenation.Navigation; with Rejuvenation.Patterns; use Rejuvenation.Patterns; with Rewriters; use Rewriters; wit...
-- Copyright (c) 2020 Raspberry Pi (Trading) Ltd. -- -- SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from rp2040.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package RP_SVD.SYSINFO is pragma Preelaborat...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Message is -- pragma Pure (Message); Version : constant String := "0.0.1"; UserLoggedIn : Boolean := False; UserLoggedName : Unbounded_String; UserLoggedFullName : Unbounded_String; end Message;
-- Lumen.Image -- Load and save image data -- -- Chip Richards, NiEstu, Phoenix AZ, Spring 2010 -- This code is covered by the ISC License: -- -- Copyright © 2010, NiEstu -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the ...
----------------------------------------------------------------------- -- awa-permissions -- Permissions module -- Copyright (C) 2011, 2012, 2013, 2014, 2016, 2017, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -...
-- (c) Copyright, Real-Time Innovations, $Date:: 2012-02-16 #$ -- All rights reserved. -- -- No duplications, whole or partial, manual or electronic, may be made -- without express written permission. Any such copies, or -- revisions thereof, must display this notice unaltered. -- This code contains trade secret...
with Ada.Text_IO; use Ada; function Get_Line return String is Line : String (1 .. 256); Last : Natural; I : Positive := 1; Old_Last : Natural; function Is_Legal (C : in Character) return Boolean is begin -- Is_Legal return C in 'A' .. 'Z' or C in 'a' .. 'z' or C in '1' .. '9'; ...
with Ada.Command_line; use Ada.Command_line; with Ada.Text_IO; use Ada.Text_IO; procedure Yes is begin if Argument_Count >= 1 then while (True) loop Put_Line(Argument(1)); end loop; else while (True) loop Put_Line("y"); end loop; end if; end Yes;
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <thindil@laeran.pl> -- -- 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 vers...
------------------------------------------------------------------------------- -- Copyright 2021, The Trendy Terminal Developers (see AUTHORS file) -- 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 Lic...
-- Copyright 2019 Michael Casadevall <michael@casadevall.pro> -- -- 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, cop...
with Ada.Text_IO; use Ada.Text_IO; procedure Test is type R is record A: Integer; end record; procedure F(X: in out Integer) is begin X := 0; end; procedure G(X: in R) is begin F(X.A); end; X: R; begin G(X); end Test;
-- -- Copyright (C) 2021 Jeremy Grosser <jeremy@synack.me> -- -- SPDX-License-Identifier: BSD-3-Clause -- package body Seven is procedure Set_Digit (This : in out Device; Pos : Position; Val : Digit) is begin case Pos is when 1 => This.Buffer (1) := Numbers ...
with Ada.Text_IO; package body AdaM is procedure put (the_Lines : in text_Lines) is use Ada.Text_IO; begin for i in 1 .. Integer (the_Lines.Length) loop put_Line (+the_Lines.Element (i)); end loop; end put; end AdaM;
-- part of OpenGLAda, (c) 2017 Felix Krause -- released under the terms of the MIT license, see the file "COPYING" with Glfw.Display; with Glfw.Events.Keys; package body GL_Test.Display_Backend is procedure Init renames Glfw.Init; procedure Open_Window (Width, Height : Natural; Depth_Bits : Natural := 0) is...
with Listas_Ordenadas_Gen, Envios; package Lista_Envios is new Listas_Ordenadas_Gen ( MAX => 1000, Componente => Envios.Envio, Precede => Envios.Precede, Copiar => Envios.Copiar, Igual => Envios.Igual );
-- menu2.adb -- -- rosetta.org menu example -- GPS 4.3-5 (Debian) -- note: the use of Unbounded strings is somewhat overkill, except that -- it allows Ada to handle variable length string data easily -- ie: differing length menu items text with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Strings.Unbounded, Ada.Strings....
-- Unit.ads with Interfaces.C; use Interfaces; package Unit is function Add (A, B : Integer) return Integer; pragma Export (C, Add, "add"); end Unit;
package body Variance is procedure Reset(v : in out Variance_Type) is begin v.sample_count := 0; v.sum := 0.0; v.sum_squares := 0.0; end Reset; procedure Update(v : in out Variance_Type; value : in T) is begin v.sample_count := v.sample_count + 1; ...
with Ada.Exceptions; procedure exception_save is S : Ada.Exceptions.Exception_Occurrence; begin -- Save_Exception Ada.Exceptions.Save_Exception (S, Constraint_Error'Identity, Message => "save!"); Ada.Debug.Put ("(1)"); begin Ada.Exceptions.Reraise_Occurrence (S); raise Program_Error; exception when X : Cons...
with Ada.Text_IO; with Ada.Integer_Text_IO; with Math_Pkg; use Ada; package body Interface_Pkg is procedure find_prime is number : Integer :=0; yes : Boolean :=false; begin Text_IO.put("Enter positives integers below 1000, negative to end"); ada.text_iO.New_Line; while true loop text_iO.New_Lin...
-- C43205A.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...
------------------------------------------------------------------------------ -- A d a r u n - t i m e s p e c i f i c a t i o n -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
%TITLE% ADS 010507/0000 LEVEL HGHT TEMP DWPT WDIR WSPD ------------------------------------------------------------------- %RAW% 991.75, 158.79, 26.61, 22.35, 164.08, 8.53 975.00, 309.81, 25.49, 20.91, 165.43, 12.62 950.00, 538.20, ...
----------------------------------------------------------------------- -- el-functions-namespaces -- Namespace function mapper -- Copyright (C) 2011, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; generic type Element_Type is private; with function Less_Than( Left, Right : in Element_Type ) return Boolean; with function Greater_Than( Left, Right : in Element_Type ) return Boolean; with procedure Put( Item: in Element_Type ); package Generic_AVL_Tree is typ...
package impact.d3.collision.Detector.discrete -- -- This interface is made to be used by an iterative approach to do TimeOfImpact calculations. -- -- This interface allows to query for closest points and penetration depth between two (convex) objects -- the closest point is on the second object (B), and the norma...
with GNAT.OS_Lib; private with System; package FSmaker.Sink.File is function Create (Path : String) return Sink.Class; function Create (FD : GNAT.OS_Lib.File_Descriptor) return Sink.Class; private type Instance is new Sink.Instance with record FD : GNAT.OS_Lib.File_Descriptor; Do_Not_Cl...
----------------------------------------------------------------------- -- awa-applications -- Ada Web Application -- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2....
with Ada.Command_Line, Ada.Text_IO; procedure Josephus is function Arg(Idx, Default: Positive) return Positive is -- read Argument(Idx) (if Ada.Command_Line.Argument_Count >= Index then Positive'Value(Ada.Command_Line.Argument(Index)) else Default); Prisoners: constant Positive := Arg(Idx => 1,...
pragma Style_Checks (Off); -- This spec has been automatically generated from ATSAMD51G19A.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package SAM_SVD.SERCOM is pragma Preelaborate; --------------- -- Registers -- --------------- ------------------------------------ --...
with Asis.Iterator, AdaM.Assist.Query.find_Entities.Actuals_for_traversing; package body AdaM.Assist.Query.find_Entities.element_Processing is procedure Recursive_Construct_Processing is new Asis.Iterator.Traverse_Element (State_Information => AdaM.Assist.Query.find_Entities.Actuals_for_tr...
with Ada.Calendar.Formatting; use Ada.Calendar.Formatting; with Ada.Text_IO; use Ada.Text_IO; procedure Yuletide is begin for Year in 2008..2121 loop if Day_Of_Week (Time_Of (Year, 12, 25)) = Sunday then Put_Line (Image (Time_Of (Year, 12, 25))); end if; end loop; end Yuletide;...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Databases - A simple database library for Ada applications -- (c) Kristian Klomsten Skordal 2019 <kristian.skordal@wafflemail.net> -- Report bugs and issues on <https://github.com/skordal/databases/issues> -- vim:ts=3:sw=3:et:si:sta with Databases; package Databases.Utilities is -- Directly executes a sta...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2017, AdaCore -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; procedure puissance_mieux is x, res : Float; n, p : Integer; begin -- Ask number who we will calculate it power with a exponent power. Put ("Enter your x : "); Get ...
with UxAS.Comms.Transport.ZeroMQ_Fabric; use UxAS.Comms.Transport; with String_Utils; use String_Utils; package body UxAS.Comms.Transport.Receiver.ZeroMQ is ---------------- -- Initialize -- ---------------- procedure Initialize (This : in out ZeroMq_Receiver_...
package body Kafka.Consumer is procedure Poll_Set_Consumer(Handle : Handle_Type) is Response : Kafka_Response_Error_Type; begin Response := rd_kafka_poll_set_consumer(Handle); if Response /= RD_KAFKA_RESP_ERR_NO_ERROR then raise Kafka_Error with "Error returned by rd_kafka_p...
-- PQ (10/12) ; PM (10/14) with Ada.Text_IO; use Ada.Text_IO; with Ada.Exceptions; -- Version radicale : exclusion mutuelle de tous -- fournit une ossature pour l'approche "automate" -- fournit un exemple de tâche proposant des entrées différentes de Demander_Lecture, ... package body LR.Synchro.Exclusion2 is ...
----------------------------------------------------------------------- -- Util.Concurrent -- Concurrent Counters -- Copyright (C) 2009, 2010, 2015 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...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Latex_Writer is type Style_Spec (<>) is private; type Table_Handler (<>) is tagged private; type Length_Unit is (Pt, Cm, Mm, Inch); type Latex_Length is private; subtype Em_Length is Float; Zero : co...
with Ada.Strings.Unbounded; with Ada.Text_IO; with TOML; procedure Main is package TIO renames Ada.Text_IO; Value : constant TOML.TOML_Value := TOML.Load_File ("example.toml").Value; begin for E of Value.Iterate_On_Table loop TIO.Put_Line (Ada.Strings.Unbounded.To_String (E.Key) & " is a " ...
-- Abstract : -- -- See spec. -- -- Copyright (C) 2014, 2017 - 2019 All Rights Reserved. -- -- This program is free software; you can redistribute it and/or -- modify it under terms of the GNU General Public License as -- published by the Free Software Foundation; either version 3, or (at -- your option...
pragma License (Unrestricted); with Ada.Numerics.Generic_Complex_Types; package Ada.Numerics.Long_Long_Complex_Types is new Generic_Complex_Types (Long_Long_Float); pragma Pure (Ada.Numerics.Long_Long_Complex_Types);
-- -- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr> -- - Ryad Benadjila -- - Arnauld Michelizza -- - Mathieu Renard -- - Philippe Thierry -- - Philippe Trebuchet -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- awa-events-dispatchers-actions -- Event dispatcher to Ada bean actions -- Copyright (C) 2012, 2017 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License")...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
-- CB3004A.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 Accept_Statement is task type The_Task_Type is entry The_Entry; end The_Task_Type; task body The_Task_Type is begin accept The_Entry; accept The_Entry do null; end The_Entry; end The_Task_Type; begin null; end Accept_Statement;
-- -- Copyright (c) 2007-2009 Tero Koskinen <tero.koskinen@iki.fi> -- -- Permission to use, copy, modify, and distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- -- THE SOFTWARE IS PROVIDED "AS...
-- $Id: Strings.md,v 1.3 1992/08/07 14:45:41 grosch rel $ -- $Log: Strings.md,v $ -- Ich, Doktor Josef Grosch, Informatiker, Sept. 1994 with Text_Io; use Text_Io; package strings is type tString is access String; NoString : tString := new String'(""); function Length (Source: tString) return Natural; proc...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Identifiers; with Program.Elements.Variants; with Program.Elements.Variant_Parts;...
----------------------------------------------------------------------- -- jason-tickets-modules -- Module tickets -- Copyright (C) 2016, 2017, 2019 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...
-- -- Monochrome Bitmap Graphics Library -- -- with Interfaces; use Interfaces; with Bitmap_Graphics; use Bitmap_Graphics; generic Width : Natural; Height : Natural; package Bitmap_Buffer is type Content is array ( 0 .. (Width * Height/8) ) of Unsigned_8; type Buffer is record Data : Content; end re...
------------------------------------------------------------------------------ -- G N A T C O L L -- -- -- -- Copyright (C) 2009-2019, AdaCore -- -- ...
----------------------------------------------------------------------- -- package body Spherical_Harmonics. Generates Spherical Harmonics. -- Copyright (C) 2018 Jonathan S. Parker -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided ...
with Ada.Unchecked_Deallocation; package body Communication is function Communication_Init (Data_Rate : Baud_Code; Name : String) return Serial_Port is Port : Serial_Port; begin Port := new Serial_Port_Inst; Port.Op...
with Buggy_Package; procedure Buggy_Package_Demo is function Func_INTEGER is new Buggy_Package.Func_INT( INTEGER ); procedure Proc_INTEGER is new Buggy_Package.Proc_INT( INTEGER ); begin NULL; end Buggy_Package_Demo;
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT INTERFACE COMPONENTS -- -- -- -- ...
-- This spec has been automatically generated from STM32F0xx.svd -- Definition of the device's interrupts package STM32_SVD.Interrupts is ---------------- -- Interrupts -- ---------------- -- Window Watchdog interrupt WWDG : constant := 0; -- PVD through EXTI line detecti...
----------------------------------------------------------------------- -- util-commands -- Support to make command line tools -- Copyright (C) 2017, 2018, 2019 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may...
-------------------------------------------------------- -- E n c o d i n g s -- -- -- -- Tools for convertion strings between Unicode and -- -- national/vendor character sets. -- -- - - - - - - - - -...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- C86006I.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...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="15"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName></userIPName> <cdfg class_id="1" tracking_level="1" ver...
with Ada.Text_IO, Crypto.Types.Big_Numbers, Ada.Numerics.Discrete_Random; procedure Miller_Rabin is Bound: constant Positive := 256; -- can be any multiple of 32 package LN is new Crypto.Types.Big_Numbers (Bound); use type LN.Big_Unsigned; -- all computations "mod 2**Bound" function "+"(S: String) retur...
------------------------------------------------------------------------------ -- Copyright (c) 2014, Natacha Porté -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- p...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Implantation d'un module Dates très simplifié. with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; package body Dates is procedure Initialiser ( Date : out T_Date ; Jour : in Integer ; Mois : in T_Mois ; ...
with AUnit.Test_Suites; with AUnit.Test_Suites.Simple_Main_Generic; procedure AUnit.Test_Cases.Simple_Main_Generic is use AUnit.Test_Suites; function Suite return AUnit.Test_Suites.Access_Test_Suite is Result : Access_Test_Suite; pragma Warnings (Off); begin Result := new Test_Suite; ...
-- { dg-do compile } package Clause_On_Volatile is type U8 is mod 2 ** 8; type Word is record A, B : U8; end record; For Word'Alignment use 4; type Vword is new Word; For Vword'Alignment use 4; pragma Volatile (Vword); type Aword is new Word; For Aword'Alignment use 4; pragma Atomic (Aword...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with Interfaces.C; with HW; use HW; package GMA is procedure gfxinit (lightup_ok : out Interfaces.C.int); pragma Export (C, gfxinit, "gma_gfxinit"); ---------------------------------------------------------------------------- type lb_framebuffer is record tag : word32; size...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Demonstrates: -- Explicit Dereference with ada.text_io; procedure explicit_deref is type A_Int is access Integer; Var : A_Int := new Integer; begin Var.all := 12; if Var.all = 12 then ada.Text_Io.Put_Line("Explicit Dereference OK"); end if; end Explicit_Deref;
with System; with STM32F4.GPIO; use STM32F4.GPIO; with STM32F4.SPI; use STM32F4.SPI; with STM32F4.RCC; use STM32F4.RCC; with STM32F429_Discovery; use STM32F429_Discovery; with Ada.Unchecked_Conversion; package STM32F4.LCD is LCD_PIXEL_WIDTH : constant := 240; LCD_PIXEL_HEIGHT : constant := 320; type LC...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright (c) 2020 Bartek thindil Jasicki <thindil@laeran.pl> -- -- 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...