mraa: update to version 0.5.0
[contrib/mraa.git] / docs / index.md
1 MRAA - Low Level Skeleton Library for Communication on Intel platforms
2 ==============
3
4 Library in C/C++ to interface with Galileo & other Intel platforms, in a
5 structured and sane API with port names/numbering that match boards & with
6 bindings to javascript & python.
7
8 The intent is to make it easier for developers and sensor manufacturers to map
9 their sensors & actuators on top of supported hardware and to allow control of
10 low level communication protocol by high level languages & constructs.
11
12 ## API
13
14 These interfaces allow you to interact with all libmraa functionality. The C++
15 classes directly wrap the C API and provide a near 1:1 mapping of
16 functionality.
17
18 <center>
19 | C API Modules          | C++ API Classes              |
20 |:----------------------:|:----------------------------:|
21 | @ref gpio.h "gpio"     | @ref mraa::Gpio "Gpio class" |
22 | @ref i2c.h "i2c"       | @ref mraa::I2c "I2c class"   |
23 | @ref aio.h "aio"       | @ref mraa::Aio "Aio class"   |
24 | @ref pwm.h "pwm"       | @ref mraa::Pwm "Pwm class"   |
25 | @ref spi.h "spi"       | @ref mraa::Spi "Spi class"   |
26 | @ref uart.h "uart"     | @ref mraa::Uart "Uart class" |
27 | @ref common.h "common" | @ref mraa "common"           |
28 </center>
29
30 ### Hello Mraa
31 @snippet hellomraa.c Interesting
32
33 ## Supported platforms
34
35 Specific platform information for supported platforms is documented here:
36
37 - @ref galileorevd
38 - @ref galileorevh
39
40 ### ENV RECOMENDATIONS
41
42 All of these are 'optional', however they are recommended. Only a C compiler,
43 cmake, libm and pthreads are technically required to compile.
44
45 - Swig 3.0.1+ built with node.js & python support (0.10.x)
46 - doxygen
47 - sphinx (requires doxygen)
48 - pygments
49
50 ## COMPILING
51
52 More information on compiling is @ref building page
53
54 ## CONTRIBUTING
55
56 Please see the @ref contributing page
57
58 ## API Changelog
59
60 This changelog is meant as a quick & rough guide to what has changed between
61 versions. The API is now fairly stable but when new calls/features are added
62 they are listed here. Anything pre 0.2.x is ignored.
63
64 **0.5.0**
65   * Intel Edison - Arduino board support.
66   * Boost Allowable i2c busses to 12
67   * Additional platform hooks added
68
69 **0.4.5**
70   * if only one spidev we default to it reguardless of number
71   * mraa_pwm_config_ms & mraa_pwm_config_percent functions added
72   * Uart C++ class added, adds python & node support
73   * galileo gen2 gpio modes supported
74
75 **0.4.4**
76   * prefix SPI mode with MRAA_SPI_
77   * added C++ adc bitness calls
78
79 **0.4.3**
80   * SPI Mode function now functional, API Change in SPI
81   * I2C read in swig worked on.
82   * Galileo Gen 2: PWM setting period sets all channel's period
83   * Galileo Gen 2: I2C setup now specific to Gen 2.
84   * General commits around freeing memory at the right times.
85
86 **0.4.2**
87   * Barebone UART module added.
88   * Hook branch merged.
89   * I2C init hooks added.
90   * Intel Galileo Gen 2, I2C gpio pins now go hiz input when I2C initialised.
91
92 **0.4.1**
93   * Rename python & nodejs modules to mraa
94   * common.hpp introduced for C++
95   * python & nodejs modules can now take binary strings for Spi & I2c
96   * improved Aio module and clear bitness
97   * Improved Galileo Gen 2 support
98
99 **0.4.0**
100   * Rename to mraa
101   * get_platform_type function added.
102
103 **0.3.1**
104   * Initial Intel Galileo Gen 2 support
105   * mraa_gpio_isr parameters added.
106   * Detection of different supported platforms added.
107
108 **0.3.0**
109   * mraa_i2c_read now returns length of read
110
111 **0.2.9**
112   * Add global mraa.h & mraa.hpp headers
113   * usage of "gpio.h" is not legal you need to use "mraa/gpio.h" unless adding
114     -L/usr/include/mraa
115
116 **0.2.8**
117   * Added mraa_set_priority call
118   * Added mmap gpio call mraa_gpio_use_mmaped
119
120 **0.2.7**
121   * C++ API now uses basic types and not unistd types as C
122   * Clearer and consistent use of unistd tpyes in C api
123
124 **0.2.6**
125   * C++ examples added, using c++ headers/api.
126   * moved to open instead of fopen in all modules
127   * rename mraa_check functions and made them internal to mraa only.
128   * removed "export" functions from api
129   * Intel Galileo Gen 1 (rev d) fixes, incorrect definition of some items
130   * SPI, implementation completed.
131   * I2C internal function, completed.
132   * PWM fix bug in period set method.
133   * Swig upstream can be used for building.
134   * No longer builds docs on default cmake, needs flag
135   * GPIO/PWM ownership guard prevents closing on existing pins, still can be forced.
136
137 **0.2.5**
138   * C++/Python/Node Enums/const names now do not contain MRAA_GPIO
139   * Enum type declaration for C++ changed
140   * Python/Node get_version() -> GetVersion()
141   * i2c read calls don't use const char* and i2c write calls do
142
143 **0.2.4**
144   * All mraa_ contexts now are pointers to the actual struct which is not
145     delcared in the header. The only end user change is that instead of
146     returning a type mraa_gpio_context pointer mraa_gpio_init() now returns a
147     mraa_gpio_context (which is actually a pointer to struct _gpio internally).
148   * C++ API is available, use the .hpp headers and add stdc++  to the linker
149     flags.
150   * Initial SPI implementation is provided
151
152 **0.2.3**
153   * mraa_aio_read_u16() -> mraa_aio_read()
154   * mraa_aio_read() now returns a uint16_t instead of an unsigned int
155
156 **0.2.2**
157   * First version with API considered 'stable'