mraa: update to version 0.7.0
[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 - @ref beaglebone
48
49 ## DEBUGGING
50
51 Sometimes it just doesn't want to work, let us try and help you, you can file
52 issues in github or join us in #mraa on freenode IRC, hang around for a little
53 while because we're not necessarily on 24/7, but we'll get back to you! Have a
54 glance at our @debugging page too
55
56 ## COMPILING
57
58 More information on compiling is @ref building page.
59
60 ## CONTRIBUTING
61
62 Please see the @ref contributing page, the @ref internals page may also be of
63 use.
64
65 ## API Changelog
66
67 This changelog is meant as a quick & rough guide to what has changed between
68 versions. The API is now fairly stable but when new calls/features are added
69 they are listed here. Anything pre 0.2.x is ignored.
70
71 **0.7.0**
72   * Uart module now contains read/write interactions and configuration
73   * Python API contains more buffer checks
74   * Java support
75   * RPM cpack support
76
77 **0.6.2**
78   * Node.js 0.12 support
79   * NPM support
80   * Formatting done with clang-format
81   * Various examples and documentation updates
82   * Supported added for Beaglebone Black + Banana Pi
83
84 **0.6.1**
85   * 16bit spi iunctions added
86   * Node.js ISR now supported
87
88 **0.6.0**
89   * add device path queries for uart
90   * add platform configuration querying
91   * gpio sample added
92   * improve i2c/spi write/read API for python & nodejs
93   * performance improvements on edison & galileo
94
95 **0.5.4**
96   * pwm read_* fix introduced in 0.5.3
97   * improved npmpkg support
98
99 **0.5.3**
100   * OE toolchain support added to CMake
101   * Various UART fixes
102   * SPI add CS exposure
103   * Remove functions from mraa.c into modules
104   * Rework of support for mmap
105   * Intel Edison MMAP support added. Read and Write
106   * I2C clean up, add cleaner functions
107   * MinnowBoard Max support added
108   * PWM period is written before duty
109   * Node GYP build supported added
110   * Add Get Platform Name function
111
112 **0.5.2**
113   * pwm improvement & bugfix
114   * spi mraa_spi_bit_per_word fix
115   * new spi transfer function
116   * i2c object api uses uint8_t
117   * i2c readReg() calls added
118   * edison i2c bus now defaults to a sensible value
119   * edison uart enable support
120   * edison hardware CS exposed as IO10
121   * DE3815tykhe NUC support
122
123 **0.5.1**
124   * Intel Edison - Mini breakout board support
125   * Change to use syslog throughout instead of printing to stderr.
126   * Fix misc issues brought up throuh coverity scans
127   * Clear up Analog call documentation
128
129 **0.5.0**
130   * Intel Edison - Arduino board support.
131   * Boost Allowable i2c busses to 12
132   * Additional platform hooks added
133   * ADC is now 10bits by default on all platforms but can be changed
134
135 **0.4.5**
136   * if only one spidev we default to it reguardless of number
137   * mraa_pwm_config_ms & mraa_pwm_config_percent functions added
138   * Uart C++ class added, adds python & node support
139   * galileo gen2 gpio modes supported
140
141 **0.4.4**
142   * prefix SPI mode with MRAA_SPI_
143   * added C++ adc bitness calls
144
145 **0.4.3**
146   * SPI Mode function now functional, API Change in SPI
147   * I2C read in swig worked on.
148   * Galileo Gen 2: PWM setting period sets all channel's period
149   * Galileo Gen 2: I2C setup now specific to Gen 2.
150   * General commits around freeing memory at the right times.
151
152 **0.4.2**
153   * Barebone UART module added.
154   * Hook branch merged.
155   * I2C init hooks added.
156   * Intel Galileo Gen 2, I2C gpio pins now go hiz input when I2C initialised.
157
158 **0.4.1**
159   * Rename python & nodejs modules to mraa
160   * common.hpp introduced for C++
161   * python & nodejs modules can now take binary strings for Spi & I2c
162   * improved Aio module and clear bitness
163   * Improved Galileo Gen 2 support
164
165 **0.4.0**
166   * Rename to mraa
167   * get_platform_type function added.
168
169 **0.3.1**
170   * Initial Intel Galileo Gen 2 support
171   * mraa_gpio_isr parameters added.
172   * Detection of different supported platforms added.
173
174 **0.3.0**
175   * mraa_i2c_read now returns length of read
176
177 **0.2.9**
178   * Add global mraa.h & mraa.hpp headers
179   * usage of "gpio.h" is not legal you need to use "mraa/gpio.h" unless adding
180     -L/usr/include/mraa
181
182 **0.2.8**
183   * Added mraa_set_priority call
184   * Added mmap gpio call mraa_gpio_use_mmaped
185
186 **0.2.7**
187   * C++ API now uses basic types and not unistd types as C
188   * Clearer and consistent use of unistd tpyes in C api
189
190 **0.2.6**
191   * C++ examples added, using c++ headers/api.
192   * moved to open instead of fopen in all modules
193   * rename mraa_check functions and made them internal to mraa only.
194   * removed "export" functions from api
195   * Intel Galileo Gen 1 (rev d) fixes, incorrect definition of some items
196   * SPI, implementation completed.
197   * I2C internal function, completed.
198   * PWM fix bug in period set method.
199   * Swig upstream can be used for building.
200   * No longer builds docs on default cmake, needs flag
201   * GPIO/PWM ownership guard prevents closing on existing pins, still can be forced.
202
203 **0.2.5**
204   * C++/Python/Node Enums/const names now do not contain MRAA_GPIO
205   * Enum type declaration for C++ changed
206   * Python/Node get_version() -> GetVersion()
207   * i2c read calls don't use const char* and i2c write calls do
208
209 **0.2.4**
210   * All mraa_ contexts now are pointers to the actual struct which is not
211     delcared in the header. The only end user change is that instead of
212     returning a type mraa_gpio_context pointer mraa_gpio_init() now returns a
213     mraa_gpio_context (which is actually a pointer to struct _gpio internally).
214   * C++ API is available, use the .hpp headers and add stdc++  to the linker
215     flags.
216   * Initial SPI implementation is provided
217
218 **0.2.3**
219   * mraa_aio_read_u16() -> mraa_aio_read()
220   * mraa_aio_read() now returns a uint16_t instead of an unsigned int
221
222 **0.2.2**
223   * First version with API considered 'stable'