Thomas Ingleby [Thu, 10 Jul 2014 00:25:20 +0000 (01:25 +0100)]
uart_setup: add example on current uart use.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Thu, 10 Jul 2014 00:14:24 +0000 (01:14 +0100)]
intel_galileo_rev_d: add uart definitions.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Wed, 9 Jul 2014 23:55:50 +0000 (00:55 +0100)]
uart: barebones uart module added.
* Only defined call is the init. Will then expose the uart from
* the multiplexors.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Brendan Le Foll [Fri, 4 Jul 2014 14:56:40 +0000 (15:56 +0100)]
mraa: update to version 0.4.1
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 4 Jul 2014 14:49:07 +0000 (15:49 +0100)]
Blink-IO.cpp: use mraa_result_t instead of int
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 4 Jul 2014 14:42:04 +0000 (15:42 +0100)]
common.hpp: use common.hpp instead of renaming C functions in interface
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Thu, 3 Jul 2014 13:51:24 +0000 (14:51 +0100)]
blink_onboard.c: add missing newline char
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Thu, 3 Jul 2014 13:39:23 +0000 (14:39 +0100)]
CMakeLists.txt: update pymraa to python-mraa
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Thu, 3 Jul 2014 08:40:09 +0000 (09:40 +0100)]
building.md: Add details to swig version requirements for nodejs support. resolves #1
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Wed, 2 Jul 2014 16:10:59 +0000 (17:10 +0100)]
types.h: add missing asterix from comment.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Wed, 2 Jul 2014 16:09:34 +0000 (17:09 +0100)]
mraa: add common hpp
* Wraps some of the C functions that libmraa has into the mraa namespace
* Not included in swig bindings as of yet
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Wed, 2 Jul 2014 12:40:14 +0000 (13:40 +0100)]
intel_galileo_rev_g: add mmap IO on some pins.
* enabled on, IO0,IO1,IO2,IO3,IO12
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Tue, 1 Jul 2014 17:29:06 +0000 (18:29 +0100)]
hook: remove hooks, move into branch.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Brendan Le Foll [Tue, 1 Jul 2014 16:13:02 +0000 (17:13 +0100)]
mraa.i: remove mraaBuffer class
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Tue, 1 Jul 2014 16:05:57 +0000 (17:05 +0100)]
mraa.c: stop ctor running in scripting languages
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Tue, 1 Jul 2014 15:38:41 +0000 (16:38 +0100)]
mraa: add deinit function for valgrind testing
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Tue, 1 Jul 2014 13:56:12 +0000 (14:56 +0100)]
spi: update spi module to use char instead of unsigned char as return values
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Tue, 1 Jul 2014 13:55:47 +0000 (14:55 +0100)]
I2c-compass.cpp: fix example to use char instead of uint8_t
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Tue, 1 Jul 2014 12:51:03 +0000 (13:51 +0100)]
i2c: allow binary strings as parameters to write() functions in scripting
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Mon, 30 Jun 2014 15:22:51 +0000 (16:22 +0100)]
intel_galileo_rev_g: add GPIO support on 14-19
* Please take care with using voltages around the ADC
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Brendan Le Foll [Mon, 30 Jun 2014 10:49:06 +0000 (11:49 +0100)]
mraa: update description of libmraa
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Mon, 30 Jun 2014 10:10:28 +0000 (11:10 +0100)]
intel_galileo_rev_g: change enable pin for SPI MISO
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Fri, 27 Jun 2014 14:46:51 +0000 (15:46 +0100)]
doc: fix formatting on platform-hooks
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Fri, 27 Jun 2014 14:37:48 +0000 (15:37 +0100)]
mraa: initial implementation of "hooks"
* Should allow for more platform quirks to be handled by mraa without
* massive conditional areas per platform.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Thu, 26 Jun 2014 17:55:38 +0000 (18:55 +0100)]
intel_galileo_rev_g: fix pwm on IO5
* Incorrect mapping.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Thu, 26 Jun 2014 17:34:29 +0000 (18:34 +0100)]
gpio: remove direction error printing
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Brendan Le Foll [Thu, 26 Jun 2014 14:07:17 +0000 (15:07 +0100)]
blink_onboard.c: fix compilation warnings
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 25 Jun 2014 16:49:27 +0000 (17:49 +0100)]
mraa: pymraa becomes mraa and mraajs becomes mraa
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Wed, 25 Jun 2014 16:32:41 +0000 (17:32 +0100)]
aio: added configuration within platform data.
* Allows for different bit shifting for each platform.
* New functions added for obtaining this information
* mraa_adc_raw_bits
* mraa_adc_supported_bits
* Update board information to include this. AIO module changed to allow
* use of the new board data
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Wed, 25 Jun 2014 13:58:15 +0000 (14:58 +0100)]
aio: minor formatting fix
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Wed, 25 Jun 2014 10:14:20 +0000 (11:14 +0100)]
gpio: add mmap enable function to cpp headers
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Wed, 25 Jun 2014 08:19:35 +0000 (09:19 +0100)]
maa: update to 0.4.0
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Wed, 25 Jun 2014 08:16:21 +0000 (09:16 +0100)]
ipk: replace existing maa if installed
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Tue, 24 Jun 2014 16:24:54 +0000 (17:24 +0100)]
mraa: rename from maa to mraa
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Brendan Le Foll [Tue, 24 Jun 2014 13:42:24 +0000 (14:42 +0100)]
maa: change complex C++ write calls to CamelCase for spi & i2c
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Tue, 24 Jun 2014 13:41:41 +0000 (14:41 +0100)]
hello_isr.py: add license header
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Tue, 24 Jun 2014 13:41:00 +0000 (14:41 +0100)]
maa.i: remove invalid typemaps to char* and include carrays
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Tue, 24 Jun 2014 13:40:34 +0000 (14:40 +0100)]
i2c.hpp: add I2c::writeReg method
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Mon, 23 Jun 2014 10:39:09 +0000 (11:39 +0100)]
maa: remove unnecessary printing
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Fri, 20 Jun 2014 17:27:44 +0000 (18:27 +0100)]
maa: remove dev printing
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Brendan Le Foll [Fri, 20 Jun 2014 17:18:05 +0000 (18:18 +0100)]
blink_onboard.c: add missing blink onboard example
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 20 Jun 2014 17:00:19 +0000 (18:00 +0100)]
maa: add maa_get_platform_type function and move swig common to type.h
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 20 Jun 2014 15:46:05 +0000 (16:46 +0100)]
maa.c: complain if we didn't detect a valid platform
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Fri, 20 Jun 2014 15:34:11 +0000 (16:34 +0100)]
maa: update to 0.3.1
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Fri, 20 Jun 2014 15:26:08 +0000 (16:26 +0100)]
pwm: disable pwm before unexporting
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Fri, 20 Jun 2014 15:22:27 +0000 (16:22 +0100)]
Merge branch 'gen2'
Thomas Ingleby [Fri, 20 Jun 2014 15:20:30 +0000 (16:20 +0100)]
intel_galile_rev_g: pinmap add definition for io.
* PWM working
* SPI working
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Fri, 20 Jun 2014 15:19:59 +0000 (16:19 +0100)]
gpio: no printing to stderr on direction change.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Kiveisha Yevgeniy [Thu, 19 Jun 2014 16:23:43 +0000 (16:23 +0000)]
gpio: Added args param to maa_gpio_isr and added documentation
Signed-off-by: Kiveisha Yevgeniy <yevgeniy.kiveisha@intel.com>
Thomas Ingleby [Thu, 19 Jun 2014 12:54:19 +0000 (13:54 +0100)]
maa: change dependency on direction for muxs
* Will not error if cannot set direction, as some muxes are do not have
* the direction file. If the mux really isnt in output mode the
* following write would also fail.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Brendan Le Foll [Wed, 18 Jun 2014 08:59:00 +0000 (09:59 +0100)]
I2c-compass.cpp: fix example to use HMC5883L_CONT_MODE
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Tue, 17 Jun 2014 19:16:03 +0000 (20:16 +0100)]
intel_galileo_rev_g: Complete initial pinmap
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Tue, 17 Jun 2014 19:15:36 +0000 (20:15 +0100)]
maa: add support for enabling pins and pulldowns
* Not Complete
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Tue, 17 Jun 2014 08:42:55 +0000 (09:42 +0100)]
intel galile rev g: change name from gen2 to revg
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Brendan Le Foll [Mon, 16 Jun 2014 17:45:59 +0000 (18:45 +0100)]
gen2: add basic galileo gen2 detection
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 16 Jun 2014 17:45:43 +0000 (18:45 +0100)]
intel_galileo_rev_d.c: change magic number to macro in header
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 13 Jun 2014 16:53:21 +0000 (17:53 +0100)]
maa.i: add typemaps for uint8_t and uint8_t*
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 13 Jun 2014 16:52:59 +0000 (17:52 +0100)]
spi.h: add doc to make sure people free the returned buffer after maa_spi_write
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 13 Jun 2014 09:30:27 +0000 (10:30 +0100)]
maa: update to 0.3.0
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 13 Jun 2014 09:30:01 +0000 (10:30 +0100)]
maa.i: add typemap for unsigned char* to char*
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 13 Jun 2014 09:16:37 +0000 (10:16 +0100)]
CMakeLists.txt: install headers in include/maa
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Thu, 12 Jun 2014 08:54:51 +0000 (09:54 +0100)]
example.js: make require path follow NODE_ENV and NODE_PATH
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Thu, 12 Jun 2014 06:59:06 +0000 (07:59 +0100)]
example.js: fix example to use up to date API
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 11 Jun 2014 13:17:34 +0000 (14:17 +0100)]
maa: make common.h header to replace maa.h header to simplify includes
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 11 Jun 2014 13:16:47 +0000 (14:16 +0100)]
README.md: make more github friendly readme and move to docs/
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 11 Jun 2014 09:47:13 +0000 (10:47 +0100)]
i2c: make maa_i2c_read always return the length of the read
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Tue, 10 Jun 2014 19:16:39 +0000 (20:16 +0100)]
js-swig: remove whitespace
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Brendan Le Foll [Tue, 10 Jun 2014 15:39:54 +0000 (16:39 +0100)]
maa: update to version 0.2.9
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Tue, 10 Jun 2014 15:33:32 +0000 (16:33 +0100)]
maa: add global maa.h and maa.hpp and stop using /usr/include/maa/
* pkg-config now only sees maa.h & maa.hpp
* usage of maa/*.{h,hpp} is still allowed
* examples updated to use maa.{h,hpp}
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Mon, 9 Jun 2014 18:14:03 +0000 (19:14 +0100)]
cmake: added logic for building a tagged commit
* If the HEAD is 0 away from a tag, i.e. if it has just been tagged,
removes commit number from version
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Brendan Le Foll [Mon, 9 Jun 2014 16:33:22 +0000 (17:33 +0100)]
maa: version bump to 0.2.8
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Mon, 9 Jun 2014 13:49:35 +0000 (14:49 +0100)]
cmake: added conflicts and replaces fields
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Mon, 9 Jun 2014 13:26:05 +0000 (14:26 +0100)]
ipk: generated ipk named as libmaa{major version}
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Mon, 9 Jun 2014 13:14:11 +0000 (14:14 +0100)]
ipk: rename end package to libmaa
* change provides to follow yocto produced package
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Thomas Ingleby [Mon, 9 Jun 2014 12:20:11 +0000 (13:20 +0100)]
cmake: updated CPackDeb to use DEB outer compression.
* Additional fields added to CMakeLists
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Brendan Le Foll [Wed, 4 Jun 2014 14:37:00 +0000 (15:37 +0100)]
package.json: add extra info about module license and runtime support
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 4 Jun 2014 13:39:41 +0000 (14:39 +0100)]
maa: add maa_set_priority call
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 4 Jun 2014 11:06:04 +0000 (12:06 +0100)]
cmake: install python & node.js modules correctly
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 4 Jun 2014 11:05:02 +0000 (12:05 +0100)]
CPackDeb.cmake: update to use opkg-buld
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Tue, 3 Jun 2014 12:29:28 +0000 (13:29 +0100)]
maa: add make package using CPack, generates IPK
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Brendan Le Foll [Fri, 30 May 2014 16:10:52 +0000 (17:10 +0100)]
api: add proper doxygen comments to C++ headers and normalise doc
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 30 May 2014 16:09:54 +0000 (17:09 +0100)]
Doxyfile.in: remove deprecated options in doxygen 1.8
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 30 May 2014 09:28:21 +0000 (10:28 +0100)]
swig: use C++ generated class doc and include directly from maa.i
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 30 May 2014 08:58:34 +0000 (09:58 +0100)]
doxy2swig.py: explicitly set to use python2
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 30 May 2014 08:53:20 +0000 (09:53 +0100)]
DoxygenLayout.xml: make C++ doc order a little like the C doc
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 30 May 2014 08:52:05 +0000 (09:52 +0100)]
Doxyfile.in: remove include dir from INPUT path
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Thu, 29 May 2014 15:36:43 +0000 (16:36 +0100)]
Merge branch 'gpio-mem'
Thomas Ingleby [Thu, 29 May 2014 15:30:07 +0000 (16:30 +0100)]
mmap: added mmap io to gpio
* added function to gpio to use mmap
* changed board definition format around mmap io (fast-gpio)
* Intel Galileo Rev D updated to follow changed definitions
* Example performing mmap io to pin 2 added.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Brendan Le Foll [Thu, 29 May 2014 13:51:38 +0000 (14:51 +0100)]
docs: Add docs/ folder with in depth topics as well as DoxygenLayout.xml file
* C headers now have @briefs and include examples
* Examples have altered 'Interesting' Sections
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 28 May 2014 10:01:00 +0000 (11:01 +0100)]
cmake: version bump to 0.2.7
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 28 May 2014 10:00:36 +0000 (11:00 +0100)]
examples: add Interesting snippet tags to examples and link in Readme.md
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Wed, 28 May 2014 09:58:27 +0000 (10:58 +0100)]
c++: Use simple types instead of unistd types for swig generation
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Tue, 27 May 2014 09:43:46 +0000 (10:43 +0100)]
aio.py: add aio python example
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Tue, 27 May 2014 09:38:56 +0000 (10:38 +0100)]
aio.hpp: read() uses basic type to make generation of swig interfaces easier
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Mon, 26 May 2014 15:05:17 +0000 (16:05 +0100)]
aio: make types used more logical and simplify logic
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 23 May 2014 13:47:23 +0000 (14:47 +0100)]
doxygen: add examples from examples dir and include one section on Readme.md
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 23 May 2014 13:21:53 +0000 (14:21 +0100)]
i2c: use uint8_t throughout to make code clearer
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 23 May 2014 12:56:45 +0000 (13:56 +0100)]
swig: add BUILDSWIG macros to disable building of swig modules
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Brendan Le Foll [Fri, 23 May 2014 10:58:04 +0000 (11:58 +0100)]
cmake: make sure headers are not in api/ subdir
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
Thomas Ingleby [Thu, 22 May 2014 13:57:19 +0000 (14:57 +0100)]
cmake: version bump to 0.2.6
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>