From 160e9b1200479096e6fb6a79f5ef2e10216571e1 Mon Sep 17 00:00:00 2001 From: tmeissner Date: Sun, 26 Jan 2014 23:20:17 +0100 Subject: [PATCH] added lost header with comments for creation of this file --- st7565-lcd/bcm2835_h.ads | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/st7565-lcd/bcm2835_h.ads b/st7565-lcd/bcm2835_h.ads index c69a5a9..1a0ed87 100644 --- a/st7565-lcd/bcm2835_h.ads +++ b/st7565-lcd/bcm2835_h.ads @@ -1,3 +1,24 @@ +-- BCM2835 library Ada bindings +-- derived from /usr/local/include/bcm2835.h +-- with the GNAT compiler: +-- +-- $ g++ -c -fdump-ada-spec -C /usr/local/include/bcm2835.h +-- $ gcc -c -gnat05 *.ads +-- +-- see for more at: http://www.adacore.com/adaanswers/gems/gem-59/#sthash.eDZ2bNEb.dpuf +-- +-- we get two files: +-- bcm2835_h.ads -> bcm2835.h bindings +-- stdint_h.ads -> stdint.h bindings +-- +-- some #defines couldn't be transformed by GNAT, so we have to do that manually +-- they are marked and commented out in the generated file +-- I've converted them by myself in this file, they are marked with the +-- 'manually converted' comment before (first expressions after the big comment block at the bgin of the package) + + + + with Interfaces.C; use Interfaces.C; with stdint_h; with Interfaces.C.Strings;