Private
Public Access
2
0
Commit Graph

217 Commits

Author SHA1 Message Date
Brendan Le Foll
bc0da78b97 cmake: make sure headers are not in api/ subdir
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-23 11:58:04 +01:00
Thomas Ingleby
036bb40ab2 cmake: version bump to 0.2.6
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-22 14:57:19 +01:00
Brendan Le Foll
0fe7bd335c src: add unistd.h to pwm and spi modules to remove compiler warnings
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-22 14:54:19 +01:00
Brendan Le Foll
55403793e3 pwm: equality comparison should be assignment
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-22 14:53:18 +01:00
Brendan Le Foll
ff720b67f5 I2c-compass: add -lm to linker
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-22 14:52:10 +01:00
Brendan Le Foll
9e2ce3f38c cmake: install only the public API in ${prefix}/include/maa
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-22 14:26:11 +01:00
Brendan Le Foll
fb7da58139 cmake: install examples in ${prefix}/share/maa/examples
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-22 14:26:11 +01:00
Thomas Ingleby
8d21d477b8 examples: added more cpp examples.
Mostly just the same functionality as the C examples yet using the cpp
api.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-22 14:17:33 +01:00
Brendan Le Foll
bd1fabab5e nodejs: define BUILDING_NODE_EXTENSION in CXXFLAGS for upstream swig
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-22 11:40:59 +01:00
Brendan Le Foll
45781693c7 cmake: building doc is now a cmake option and off by default
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-22 11:05:46 +01:00
Thomas Ingleby
923e4829a9 maa: change javascript to use swig upstream
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-22 10:16:09 +01:00
Thomas Ingleby
716004de54 intel_galileo_rev_d: fix i2c bus definition
* Worked before just wasnt quite correct. As SCL SDA share a
* mux on the rev d.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 17:05:58 +01:00
Thomas Ingleby
04a79bef2d intel_galileo_rev_d: fix definition of pwm on 9/11
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 15:50:06 +01:00
Thomas Ingleby
a2c7eb5458 pwm: made export functions static
* removed functions from external api also.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 14:56:11 +01:00
Thomas Ingleby
98800a5c76 gpio: made export functions static.
* removed functions from api also

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 14:55:14 +01:00
Thomas Ingleby
7cc5d6b2b8 pwm: fix writing of period
Incorrect value attempted to be written

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 14:49:32 +01:00
Thomas Ingleby
e5a893bfb8 i2c: internal setup function properly works
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 14:01:22 +01:00
Thomas Ingleby
2b8ab38418 maa: hide and rename internal maa functions
Based on feedback received. All check functions renamed to setup.
Update all modules to use new name and header.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 13:17:16 +01:00
Thomas Ingleby
0813271423 spi: fix headers
Missed in earlier commits

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 13:07:50 +01:00
Thomas Ingleby
546157a9ab aio: fix spacing
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 12:58:55 +01:00
Thomas Ingleby
29ec5b1ac4 maa: add maa internal header.
For internal functions and data definitions.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 12:52:38 +01:00
Thomas Ingleby
ffc604afae maa: remove whitespace
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
2014-05-21 12:50:12 +01:00
Thomas Ingleby
a8d7473a5b spi: completed implementation.
* Added more functions for transaction settings.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-21 09:50:28 +01:00
Thomas Ingleby
66550f9487 spi: Use new feature of pinmap to get split info.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-21 09:50:24 +01:00
Thomas Ingleby
b7c2b701aa spi-pinmap: seperated bus from slave select.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-21 09:50:19 +01:00
Brendan Le Foll
94941f5100 gtest: fix version test and change test cmake var name
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-20 15:40:28 +01:00
Brendan Le Foll
521b6817d7 python: include examples page for sphinx documentation that links to src examples
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-20 15:39:58 +01:00
Thomas Ingleby
7abd8f5529 gpio: add ownership gaurd
* Will not unexport if the context did not export it. Can be forced.
* Checks if pin is already exported.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-20 14:11:41 +01:00
Thomas Ingleby
5fa6f50edc pwm: added existing exposition logic
* Understands when pwm pin is already exported.
* Will not unexport if didnt export. Can be forced.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-20 14:07:19 +01:00
Thomas Ingleby
fa7180cb91 pwm: use posix open instead of fopen
* Add safety to output char arrays and filepaths.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-20 10:57:20 +01:00
Thomas Ingleby
e2f72540ef gpio: use open in all function opposed to fopen
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-20 10:57:15 +01:00
Brendan Le Foll
b0707886af maa.i: fix definition of printError in interface file
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-19 11:47:38 +01:00
Brendan Le Foll
a697512eed cmake: version bump to 0.2.5
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-19 11:05:43 +01:00
Thomas Ingleby
0c82a47fe4 pwm: changed to use strtol for return values.
* Minor spelling corrections
* Small format change in function. Incorrect spacing.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-19 10:49:41 +01:00
Thomas Ingleby
6333a21c6f pwm: removed disabling pin on unexport.
Needed to be handled differently based on the running platform

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-19 10:49:36 +01:00
Brendan Le Foll
3d10fc1c0d gpio.c: PyEval_Call now casts void* to PyObject* before call, fixing warning
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-19 10:35:29 +01:00
Brendan Le Foll
adcefeaba1 i2c: fix write API to use const char*
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-19 10:34:36 +01:00
Brendan Le Foll
608bc4fdcf maa.i: add return types to swig constants
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-19 09:58:01 +01:00
Brendan Le Foll
9314eb2c90 maa.i: add printError() function to swig API
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-19 09:51:59 +01:00
Brendan Le Foll
1160c99816 maa.i: rename get_version() to getVersion()
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-19 09:51:31 +01:00
Brendan Le Foll
a49d357849 maa.c: add stdlib.h to remove clang warning
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-19 09:50:58 +01:00
Brendan Le Foll
3731263752 C++: Change enum types to be shorter in C++
* This changes the swig interface so Python/Node APIs change slightly

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-19 09:49:30 +01:00
Brendan Le Foll
5d9fc39ae9 hello_isr.py: fix usage of isr in python example
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-16 17:52:06 +01:00
Brendan Le Foll
104555b908 cmake: version bump due to API change
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-16 17:10:34 +01:00
Brendan Le Foll
8979ff4194 README.md: add changelog to explain API changes
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-16 17:04:04 +01:00
Thomas Ingleby
1434f8f317 blink-io-cpp: example gpio using cpp wrappers.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-16 16:58:14 +01:00
Brendan Le Foll
0765a9454b c++: Add C++ runtime library to linker patch
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-16 14:45:16 +01:00
Brendan Le Foll
bf50a94a8e spi: fix use of memset sizeof param
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-16 14:44:14 +01:00
Brendan Le Foll
045b704063 gpio: fix use of memset sizeof param
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-16 14:44:04 +01:00
Brendan Le Foll
09d3f380c1 swig: add gpio enum definitions on interface file
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2014-05-16 14:31:47 +01:00