docs: add bananapi links and BBB reference
[contrib/mraa.git] / docs / index.md
1 libmraa - Low Level Skeleton Library for Communication on GNU/Linux platforms
2 ==============
3
4 Libmraa is a C/C++ library with bindings to javascript & python to interface
5 with the IO on Galileo, Edison & other platforms, with a structured and sane
6 API where port names/numbering matches the board that you are on. Use of
7 libmraa does not tie you to specific hardware with board detection done at
8 runtime you can create portable code that will work across the supported
9 platforms.
10
11 The intent is to make it easier for developers and sensor manufacturers to map 
12 their sensors & actuators on top of supported hardware and to allow control of
13 low level communication protocol by high level languages & constructs.
14
15 ## API
16
17 These interfaces allow you to interact with all libmraa functionality. The C++
18 classes directly wrap the C API and provide a near 1:1 mapping of
19 functionality.
20
21 <center>
22 | C API Modules          | C++ API Classes              |
23 |:----------------------:|:----------------------------:|
24 | @ref gpio.h "gpio"     | @ref mraa::Gpio "Gpio class" |
25 | @ref i2c.h "i2c"       | @ref mraa::I2c "I2c class"   |
26 | @ref aio.h "aio"       | @ref mraa::Aio "Aio class"   |
27 | @ref pwm.h "pwm"       | @ref mraa::Pwm "Pwm class"   |
28 | @ref spi.h "spi"       | @ref mraa::Spi "Spi class"   |
29 | @ref uart.h "uart"     | @ref mraa::Uart "Uart class" |
30 | @ref common.h "common" | @ref mraa "common"           |
31 </center>
32
33 ### Hello Mraa
34 @snippet hellomraa.c Interesting
35
36 ## Supported platforms
37
38 Specific platform information for supported platforms is documented here:
39
40 - @ref galileorevd
41 - @ref galileorevh
42 - @ref edison
43 - @ref de3815
44 - @ref minnowmax
45 - @ref rasppi
46 - @ref bananapi
47
48 ## DEBUGGING
49
50 Sometimes it just doesn't want to work, let us try and help you, you can file
51 issues in github or join us in #mraa on freenode IRC, hang around for a little
52 while because we're not necessarily on 24/7, but we'll get back to you! Have a
53 glance at our @debugging page too
54
55 ## COMPILING
56
57 More information on compiling is @ref building page.
58
59 ## CONTRIBUTING
60
61 Please see the @ref contributing page, the @ref internals page may also be of
62 use.
63
64 ## API Changelog
65
66 This changelog is meant as a quick & rough guide to what has changed between
67 versions. The API is now fairly stable but when new calls/features are added
68 they are listed here. Anything pre 0.2.x is ignored.
69
70 **0.6.1**
71   * 16bit spi iunctions added
72   * Node.js ISR now supported
73
74 **0.6.0**
75   * add device path queries for uart
76   * add platform configuration querying
77   * gpio sample added
78   * improve i2c/spi write/read API for python & nodejs
79   * performance improvements on edison & galileo
80
81 **0.5.4**
82   * pwm read_* fix introduced in 0.5.3
83   * improved npmpkg support
84
85 **0.5.3**
86   * OE toolchain support added to CMake
87   * Various UART fixes
88   * SPI add CS exposure
89   * Remove functions from mraa.c into modules
90   * Rework of support for mmap
91   * Intel Edison MMAP support added. Read and Write
92   * I2C clean up, add cleaner functions
93   * MinnowBoard Max support added
94   * PWM period is written before duty
95   * Node GYP build supported added
96   * Add Get Platform Name function
97
98 **0.5.2**
99   * pwm improvement & bugfix
100   * spi mraa_spi_bit_per_word fix
101   * new spi transfer function
102   * i2c object api uses uint8_t
103   * i2c readReg() calls added
104   * edison i2c bus now defaults to a sensible value
105   * edison uart enable support
106   * edison hardware CS exposed as IO10
107   * DE3815tykhe NUC support
108
109 **0.5.1**
110   * Intel Edison - Mini breakout board support
111   * Change to use syslog throughout instead of printing to stderr.
112   * Fix misc issues brought up throuh coverity scans
113   * Clear up Analog call documentation
114
115 **0.5.0**
116   * Intel Edison - Arduino board support.
117   * Boost Allowable i2c busses to 12
118   * Additional platform hooks added
119   * ADC is now 10bits by default on all platforms but can be changed
120
121 **0.4.5**
122   * if only one spidev we default to it reguardless of number
123   * mraa_pwm_config_ms & mraa_pwm_config_percent functions added
124   * Uart C++ class added, adds python & node support
125   * galileo gen2 gpio modes supported
126
127 **0.4.4**
128   * prefix SPI mode with MRAA_SPI_
129   * added C++ adc bitness calls
130
131 **0.4.3**
132   * SPI Mode function now functional, API Change in SPI
133   * I2C read in swig worked on.
134   * Galileo Gen 2: PWM setting period sets all channel's period
135   * Galileo Gen 2: I2C setup now specific to Gen 2.
136   * General commits around freeing memory at the right times.
137
138 **0.4.2**
139   * Barebone UART module added.
140   * Hook branch merged.
141   * I2C init hooks added.
142   * Intel Galileo Gen 2, I2C gpio pins now go hiz input when I2C initialised.
143
144 **0.4.1**
145   * Rename python & nodejs modules to mraa
146   * common.hpp introduced for C++
147   * python & nodejs modules can now take binary strings for Spi & I2c
148   * improved Aio module and clear bitness
149   * Improved Galileo Gen 2 support
150
151 **0.4.0**
152   * Rename to mraa
153   * get_platform_type function added.
154
155 **0.3.1**
156   * Initial Intel Galileo Gen 2 support
157   * mraa_gpio_isr parameters added.
158   * Detection of different supported platforms added.
159
160 **0.3.0**
161   * mraa_i2c_read now returns length of read
162
163 **0.2.9**
164   * Add global mraa.h & mraa.hpp headers
165   * usage of "gpio.h" is not legal you need to use "mraa/gpio.h" unless adding
166     -L/usr/include/mraa
167
168 **0.2.8**
169   * Added mraa_set_priority call
170   * Added mmap gpio call mraa_gpio_use_mmaped
171
172 **0.2.7**
173   * C++ API now uses basic types and not unistd types as C
174   * Clearer and consistent use of unistd tpyes in C api
175
176 **0.2.6**
177   * C++ examples added, using c++ headers/api.
178   * moved to open instead of fopen in all modules
179   * rename mraa_check functions and made them internal to mraa only.
180   * removed "export" functions from api
181   * Intel Galileo Gen 1 (rev d) fixes, incorrect definition of some items
182   * SPI, implementation completed.
183   * I2C internal function, completed.
184   * PWM fix bug in period set method.
185   * Swig upstream can be used for building.
186   * No longer builds docs on default cmake, needs flag
187   * GPIO/PWM ownership guard prevents closing on existing pins, still can be forced.
188
189 **0.2.5**
190   * C++/Python/Node Enums/const names now do not contain MRAA_GPIO
191   * Enum type declaration for C++ changed
192   * Python/Node get_version() -> GetVersion()
193   * i2c read calls don't use const char* and i2c write calls do
194
195 **0.2.4**
196   * All mraa_ contexts now are pointers to the actual struct which is not
197     delcared in the header. The only end user change is that instead of
198     returning a type mraa_gpio_context pointer mraa_gpio_init() now returns a
199     mraa_gpio_context (which is actually a pointer to struct _gpio internally).
200   * C++ API is available, use the .hpp headers and add stdc++  to the linker
201     flags.
202   * Initial SPI implementation is provided
203
204 **0.2.3**
205   * mraa_aio_read_u16() -> mraa_aio_read()
206   * mraa_aio_read() now returns a uint16_t instead of an unsigned int
207
208 **0.2.2**
209   * First version with API considered 'stable'