Browse Source

added lost header with comments for creation of this file

T. Meissner 6 years ago
parent
commit
160e9b1200
1 changed files with 21 additions and 0 deletions
  1. 21
    0
      st7565-lcd/bcm2835_h.ads

+ 21
- 0
st7565-lcd/bcm2835_h.ads View File

@@ -1,3 +1,24 @@
1
+-- BCM2835 library Ada bindings
2
+-- derived from /usr/local/include/bcm2835.h
3
+-- with the GNAT compiler:
4
+--
5
+-- $ g++ -c -fdump-ada-spec -C /usr/local/include/bcm2835.h
6
+-- $ gcc -c -gnat05 *.ads
7
+-- 
8
+-- see for more at: http://www.adacore.com/adaanswers/gems/gem-59/#sthash.eDZ2bNEb.dpuf
9
+--
10
+-- we get two files:
11
+-- bcm2835_h.ads -> bcm2835.h bindings
12
+-- stdint_h.ads  -> stdint.h bindings
13
+--
14
+-- some #defines couldn't be transformed by GNAT, so we have to do that manually
15
+-- they are marked and commented out in the generated file
16
+-- I've converted them by myself in this file, they are marked with the
17
+-- 'manually converted' comment before (first expressions after the big comment block at the bgin of the package)
18
+
19
+
20
+
21
+
1 22
 with Interfaces.C; use Interfaces.C;
2 23
 with stdint_h;
3 24
 with Interfaces.C.Strings;