Private
Public Access
2
0
Commit Graph

347 Commits

Author SHA1 Message Date
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
Thomas Ingleby
4d6a3be3db hook: items lost in merge, missing adv items.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-07-11 12:02:40 +01:00
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