Private
Public Access
2
0
Commit Graph

320 Commits

Author SHA1 Message Date
Thomas Ingleby
9bacfcff5f Merge branch 'hook'
Conflicts:
	include/intel_galileo_rev_d.h
	include/intel_galileo_rev_g.h
	include/mraa_adv_func.h
	include/mraa_internal.h
	src/gpio/gpio.c
	src/mraa.c
2014-07-11 11:56:45 +01:00
Thomas Ingleby
d7c8f2a794 hook: change header of board definition, add internal
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-11 11:41:14 +01:00
Thomas Ingleby
1fafd97f5e hook: rename from declared struct to adance_func
* Removed bitfield, now checks if pointer NULL.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-11 09:14:49 +01:00
Brendan Le Foll
b5b7dec441 mraa_internal: add extern "C" to internal headers
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-10 22:08:05 +01:00
Brendan Le Foll
5845350283 cmake: add -fno-omit-frame-pointer to CXX Debug flags
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-10 22:03:11 +01:00
Thomas Ingleby
9f2f5be20a uart_setup: add example on current uart use.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-10 09:33:36 +01:00
Thomas Ingleby
9351c91f40 intel_galileo_rev_d: add uart definitions.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-10 09:33:36 +01:00
Thomas Ingleby
23304fb6c4 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>
2014-07-10 01:09:46 +01:00
Brendan Le Foll
86af05f803 mraa: update to version 0.4.1
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-07-04 15:56:40 +01:00
Brendan Le Foll
acfe9b7793 Blink-IO.cpp: use mraa_result_t instead of int
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-07-04 15:49:07 +01:00
Brendan Le Foll
4b0f24367a common.hpp: use common.hpp instead of renaming C functions in interface
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-07-04 15:42:04 +01:00
Brendan Le Foll
720008f61f blink_onboard.c: add missing newline char
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-07-03 14:51:24 +01:00
Brendan Le Foll
702cfcaef5 CMakeLists.txt: update pymraa to python-mraa
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-07-03 14:39:23 +01:00
Brendan Le Foll
6725ba386d building.md: Add details to swig version requirements for nodejs support. resolves #1
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-07-03 09:40:09 +01:00
Thomas Ingleby
2cb2122fa1 types.h: add missing asterix from comment.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-02 17:10:59 +01:00
Thomas Ingleby
053d9aef70 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>
2014-07-02 17:09:34 +01:00
Thomas Ingleby
b408207086 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>
2014-07-02 13:40:14 +01:00
Thomas Ingleby
0e46b94793 hook: remove hooks, move into branch.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-01 18:32:38 +01:00
Brendan Le Foll
a65ad6a551 mraa.i: remove mraaBuffer class
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-07-01 17:13:02 +01:00
Brendan Le Foll
eec08ac97b mraa.c: stop ctor running in scripting languages
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-07-01 17:05:57 +01:00
Brendan Le Foll
437e26781c mraa: add deinit function for valgrind testing
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-07-01 16:38:41 +01:00
Brendan Le Foll
b1def2a784 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>
2014-07-01 14:56:12 +01:00
Brendan Le Foll
8eff646cb0 I2c-compass.cpp: fix example to use char instead of uint8_t
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-07-01 14:55:47 +01:00
Brendan Le Foll
70ba5a56ab i2c: allow binary strings as parameters to write() functions in scripting
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-07-01 13:51:28 +01:00
Thomas Ingleby
cf1881a978 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>
2014-06-30 16:22:51 +01:00
Brendan Le Foll
44f55cfdc8 mraa: update description of libmraa
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-30 11:49:06 +01:00
Thomas Ingleby
5c48f2a885 intel_galileo_rev_g: change enable pin for SPI MISO
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-30 11:10:28 +01:00
Thomas Ingleby
eaa395d99c doc: fix formatting on platform-hooks
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-27 15:46:51 +01:00
Thomas Ingleby
d0ea43f8d1 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>
2014-06-27 15:37:48 +01:00
Thomas Ingleby
b6c56911c3 intel_galileo_rev_g: fix pwm on IO5
* Incorrect mapping.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-26 18:55:38 +01:00
Thomas Ingleby
88de5b9c35 gpio: remove direction error printing
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-26 18:38:13 +01:00
Brendan Le Foll
b36321ac50 blink_onboard.c: fix compilation warnings
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-26 15:07:17 +01:00
Brendan Le Foll
c821c84e4a mraa: pymraa becomes mraa and mraajs becomes mraa
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-25 17:49:07 +01:00
Thomas Ingleby
e5c7e64cf3 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>
2014-06-25 17:32:41 +01:00
Thomas Ingleby
9a81b043be aio: minor formatting fix
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-25 14:58:15 +01:00
Thomas Ingleby
09b8663a7e gpio: add mmap enable function to cpp headers
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-25 11:14:20 +01:00
Thomas Ingleby
d47364189d maa: update to 0.4.0
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-25 09:19:35 +01:00
Thomas Ingleby
3335c753f9 ipk: replace existing maa if installed
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-25 09:16:21 +01:00
Thomas Ingleby
6853997a92 mraa: rename from maa to mraa
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-24 17:24:54 +01:00
Brendan Le Foll
79d0da4853 maa: change complex C++ write calls to CamelCase for spi & i2c
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-24 14:42:24 +01:00
Brendan Le Foll
2664d7c0e0 hello_isr.py: add license header
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-24 14:41:41 +01:00
Brendan Le Foll
ad140c9511 maa.i: remove invalid typemaps to char* and include carrays
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-24 14:41:00 +01:00
Brendan Le Foll
17edeb3e7a i2c.hpp: add I2c::writeReg method
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-24 14:40:34 +01:00
Thomas Ingleby
a5aeea4d04 maa: remove unnecessary printing
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-23 11:39:09 +01:00
Thomas Ingleby
d8c45bf6de maa: remove dev printing
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-20 18:27:44 +01:00
Brendan Le Foll
48f7b0695d blink_onboard.c: add missing blink onboard example
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-20 18:18:05 +01:00
Brendan Le Foll
475a692638 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>
2014-06-20 18:00:19 +01:00
Brendan Le Foll
5723e356db maa.c: complain if we didn't detect a valid platform
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-06-20 16:46:05 +01:00
Thomas Ingleby
2989df3a13 maa: update to 0.3.1
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-20 16:34:11 +01:00
Thomas Ingleby
3e88578754 pwm: disable pwm before unexporting
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-06-20 16:26:08 +01:00