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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.unit0.net!newsreader4.netcologne.de!news.netcologne.de!.POSTED.xdsl-89-0-114-118.netcologne.de!not-for-mail From: Frank Buss Newsgroups: comp.lang.ada Subject: Re: FIFO Date: Sat, 16 Sep 2017 19:12:44 +0200 Organization: news.netcologne.de Distribution: world Message-ID: References: <87wp4y8vkn.fsf@jacob-sparre.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 16 Sep 2017 17:12:44 +0000 (UTC) Injection-Info: newsreader4.netcologne.de; posting-host="xdsl-89-0-114-118.netcologne.de:89.0.114.118"; logging-data="16633"; mail-complaints-to="abuse@netcologne.de" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: <87wp4y8vkn.fsf@jacob-sparre.dk> Xref: news.eternal-september.org comp.lang.ada:48151 Date: 2017-09-16T19:12:44+02:00 List-Id: On 09/16/2017 06:19 PM, Jacob Sparre Andersen wrote: > Frank Buss writes: > >> I need a FIFO with a fixed size, for buffering serial data on an >> embedded system. The FIFO will be filled in an interrupt and read from >> the main function. > > Maybe something like a bounded, synchronised queue > (http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-A-18-29.html)? Bit cumbersome to define the right type, but otherwise looks like what I was searching for. Unfortunately not supported for my implementation of ravenscar: http://www.adacore.com/developers/development-log/NF-74-O619-005-gnat/ Oh well, I'll write my own package for it then. On the plus side it wouldn't have all these interface stuff overhead and might be smaller and faster, just a simple generic with the type and the size. -- Frank Buss, http://www.frank-buss.de electronics and more: http://www.youtube.com/user/frankbuss