From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.129.167.71 with SMTP id e68mr15688694ywh.3.1483430150398; Mon, 02 Jan 2017 23:55:50 -0800 (PST) X-Received: by 10.157.39.129 with SMTP id c1mr2776570otb.15.1483430150355; Mon, 02 Jan 2017 23:55:50 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!p16no3522870qta.1!news-out.google.com!u18ni8886ita.0!nntp.google.com!b123no5872268itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 2 Jan 2017 23:55:50 -0800 (PST) In-Reply-To: <9ca07b79-db85-4d4a-b082-61cd75fcc1c8@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=80.87.63.33; posting-account=XGCYegoAAADY19DGgU_zTfTSbVlfUJ_a NNTP-Posting-Host: 80.87.63.33 References: <9ca07b79-db85-4d4a-b082-61cd75fcc1c8@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Interfacing Ada With Full Runtime Directly to Electronic Chips From: philip.munts@gmail.com Injection-Date: Tue, 03 Jan 2017 07:55:50 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:33014 Date: 2017-01-02T23:55:50-08:00 List-Id: On Monday, January 2, 2017 at 3:42:06 AM UTC+1, pat...@spellingbeewinnars.o= rg wrote: > Hi Everyone >=20 > Happy New Year! >=20 > Ada-AVR is a neat project and I am not knocking it. It doesn't have taski= ng support yet but this is of course a huge job. >=20 > If I want to connect any sort of computer running Linux directly to a cir= cuit using "full Ada" with tasking support what are my options? >=20 > By circuit, I mean a variety of electronic components and in this case wi= th no microcontroller, an A/D chip is a simple example. >=20 > I am thinking that single board computers like BeagleBone are my best bet= , they have plenty of GPIO lines. >=20 > Has anyone interfaced directly with chips via SPI or IC2 via a GPIO PCI c= ard or GPIO-USB adapter ? >=20 > Is there any other options? >=20 > Thanks-Patrick I suggest my own Linux Simple I/O Library (http://git.munts.com/libsimpleio= ). It provides Pascal calling sequence wrappers around the Linux system ca= lls for I2C, SPI, UART, and raw HID devices and includes some shim packages= for GNAT. I have tested it with both native and cross compilers on the BeagleBones Bl= ack and Green and Raspberry Pi 2 and 3. I use it mostly with the Raspberry= Pi 2 cross toolchain (which also works fine for the BeagleBone family) fro= m AdaCore and targeted to my own embedded Linux distribution called MuntsOS= (http://git.munts.com/arm-linux-mcu). I also have a collection of packages and example programs for various Mikro= elektronika click boards and Raspberry Pi hats that are not published yet. = I am in the middle of writing a paper about this very topic. Phil