Brendan Le Foll
2687e5a7c4
docs: add common i2c doc page i2c.txt
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-07 21:20:06 +01:00
Thomas Ingleby
82041b3635
cpack: add tgz generator
...
* Used by build system to create copy compiled assests
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-09-05 13:09:32 +01:00
Brendan Le Foll
5e85606e38
mraa: update to version 0.4.5
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-03 09:34:30 +01:00
Brendan Le Foll
54dfe903bb
docs: remove references to C++ as docstrings used by sphinx
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-03 09:33:29 +01:00
Brendan Le Foll
0d04677c98
uart: add C++ Uart module and links to swig
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-03 09:30:49 +01:00
Thomas Ingleby
111544a764
gen 2: add hook for handling modes for gpio
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-09-02 14:46:48 +01:00
Brendan Le Foll
3ef520c1d4
docs: add references to galileo generation
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-01 23:19:24 +01:00
Brendan Le Foll
21b65f5eb1
common.hpp: fix documentation of functions
...
Functions inside namespace are tough to document, bypassing this by documenting
the namespace and then using the namespace doc as common.hpp doc in the index
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-09-01 23:18:51 +01:00
Mark Ceisel
9cf6cad45a
pwm: add config_ms and config_percent.
...
* Allows user to set both at the same time. Will reset to previous if
* period for duty cycle fails to write
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-09-01 12:18:01 +01:00
Thomas Ingleby
a8bbd55562
pwm: rename internal functions from get to read
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-09-01 11:30:58 +01:00
Thomas Ingleby
3f1dff163c
spi: if platform has one spidev, defaults to it.
...
* Removes complexity on some platforms.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-08-26 13:55:58 +01:00
Brendan Le Foll
0c53b90c09
mraa: update to version 0.4.4
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-08-15 10:58:58 +01:00
Dan Yocom
99bc1392e4
javascript: added basic examples to mraa
...
Signed-off-by: Dan Yocom <dan.yocom@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-08-15 10:19:23 +01:00
Brendan Le Foll
22a3551bf8
common.hpp: add ADC bitness calls to C++ api
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-08-14 14:21:03 +01:00
Brendan Le Foll
8d095e1002
README.md: add repo instructions
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-08-14 11:41:13 +01:00
Brendan Le Foll
87f87c4524
README.md: improve github front page doc
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-08-14 11:29:55 +01:00
izard
450ebdeca8
docs: Fixed typos
...
Signed-off-by: izard <alexander.komarov@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-08-13 14:24:18 +01:00
Brendan Le Foll
fa06e7e81f
docs: add supported platforms
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-08-12 17:16:10 +01:00
Brendan Le Foll
df05dc58ca
spi: prefix SPI mode with MRAA_SPI_
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-08-08 09:32:28 +01:00
Thomas Ingleby
3320105662
mraa: update to version 0.4.3
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-08-06 16:22:47 +01:00
Kiveisha Yevgeniy
998095d802
spi: added spi mode to mraa
...
Signed-off-by: Kiveisha Yevgeniy <yevgeniy.kiveisha@intel.com >
2014-08-06 11:40:51 +00:00
Brendan Le Foll
551e553894
example.rst: improve and fill out python documentation
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-08-05 10:58:16 +01:00
Brendan Le Foll
9765aa9bce
i2c_HMC5883.py: add python I2c.read() example
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-08-05 10:44:43 +01:00
Brendan Le Foll
e7bda80013
i2c.hpp: new read() variant that returns terminated std::string
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-08-05 10:18:14 +01:00
Brendan Le Foll
9d488c8e86
mraa.c: fclose on NULL fp can segfault on some platforms
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-08-01 11:36:10 +02:00
Brendan Le Foll
1b2ff8af55
sphinx: update python module documentation to reflect latest changes
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-07-31 10:25:24 +02:00
Brendan Le Foll
9b6d67aa87
i2c.hpp: add read(size_t length) function useful in scripting languages
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-07-31 10:14:57 +02:00
Brendan Le Foll
3925724464
i2c.hpp: overload read() function, this renames readByte
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-07-31 10:14:22 +02:00
Brendan Le Foll
31c0eb33e5
i2c_HMC5883.py: add i2c read & write example
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-07-29 16:02:42 +02:00
Brendan Le Foll
11f1f784c7
rgblcd.py: fix example to use 0xFF and not 0x255 which is out of bounds
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-07-29 12:16:27 +02:00
Brendan Le Foll
662bf67dc6
spi.c: destructor now freeing memory
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-07-28 16:40:55 +02:00
Brendan Le Foll
c977a6d19c
gpio.c: close fd in mmap function
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-07-28 16:39:00 +02:00
Thomas Ingleby
b6358b5e7e
gen2: fix typo on A5 GPIO pinmap
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-25 02:56:14 +01:00
Brendan Le Foll
8e33ad3f34
galileorevh.md: add initial revH doc
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-07-24 16:59:53 +01:00
Brendan Le Foll
11a2e559a1
cycle-pwm3.py: make example use real pin3 and make work on gen2
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-07-24 15:17:11 +01:00
Thomas Ingleby
9d7e9aa4ca
Galileo Gen2: add replace hook for pwm period
...
* Warning, doing a period call on the gen2 will change it for all pwm
* channels and temporarily disable them whilst doing it.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-24 14:43:58 +01:00
Thomas Ingleby
595eec2737
pwm: move internal context structure to internal header
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-24 14:21:06 +01:00
Thomas Ingleby
715863cd28
pwm: add period write replace hook
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-24 14:20:01 +01:00
Brendan Le Foll
1f6afb0a18
cycle-pwm3.py: fix example
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-07-24 10:10:04 +01:00
Thomas Ingleby
0a646db692
mraa: update to version 0.4.2
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-14 18:31:03 +01:00
Thomas Ingleby
b95436c468
gpio: remove printf's, change init-post hook
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-14 18:25:40 +01:00
Thomas Ingleby
36384f16b1
intel_galileo_rev_g: make gpio on i2c pins go hiz
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-14 18:22:38 +01:00
Thomas Ingleby
57d58b66ca
i2c: add init(pre-post) hooks
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-14 18:19:07 +01:00
Thomas Ingleby
00f188c235
i2c: internal structure to mraa_internal_types
...
* For use in hooks
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-14 17:52:08 +01:00
Thomas Ingleby
dc7dde857b
i2c: add Brendan's email to header
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-14 17:49:31 +01:00
Thomas Ingleby
ce1fe370c4
intel_galileo_rev_g: remove platform code from core
...
* Using hook functionality swap_complex is now done in the pre direction
* set area.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-14 17:46:18 +01:00
Thomas Ingleby
3d5512c15e
mraa: make platform info more available internally
...
* available with mraa_internal header
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-14 16:56:12 +01:00
Thomas Ingleby
fb030b5e9f
hook: change structure to pointer
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-14 15:37:55 +01:00
Thomas Ingleby
b74759e973
mraa: rename internal adv func mraa_adv_func_t
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-07-14 15:12:08 +01:00
Brendan Le Foll
c0b8360698
i2c.c: add newlines at the end of all error msgs
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-07-11 14:47:52 +01:00