Brendan Le Foll
d4552fdc5e
javascript: add a generated package.json with versioning
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-24 11:19:05 +00:00
Henry Bruce
d7c92bf19e
intel_minnow_max.c: fixed pin capability errors
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-21 19:55:44 +00:00
Thomas Ingleby
8f9059767f
spi: fix mistake from mem branch where spi will fail.
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-21 11:50:59 +00:00
Brendan Le Foll
148c22fb27
mraa.c: fix char count in board_name
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-20 15:08:31 +00:00
Henry Bruce
7aea3459a9
pwm.c: Must write period before duty_cycle to avoid sysfs error
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
2014-11-20 15:08:31 +00:00
Henry Bruce
57540cd86c
gpio.c: check that real gpio did initialise correctly
...
On platforms without muxing perform a little more checking when the 'real'
linux/sysfs gpio is opened. We don't expect this to fail but on platforms where
the linux gpios can be changed depending on pinctrl/bios configuration this
might not always be the case.
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-20 15:08:31 +00:00
Henry Bruce
6bc2b0fb53
intel_minnow_max: Added platform definition
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-20 15:08:31 +00:00
Thomas Ingleby
c123ff75f0
galileo gen2: add missing mux information for UART on IO1
...
Fixes #36
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-20 15:08:31 +00:00
Brendan Le Foll
d95df3ec22
intel_edison_fab_c.c: remove uart_init_post hook for miniboard
...
use uart_init_pre hook instead. Fixes #39
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-20 14:50:58 +00:00
Brendan Le Foll
19d7dad364
i2c: remove smbus helper library & clean up command use in API
...
This commit changes the mraa_i2c_read() API call behaviour, a register should
now always be set when using this call. The smbus helper library is no longer
required since the code is now all contained from i2c.c which avoids multiple
function calls
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-20 12:03:31 +00:00
Brendan Le Foll
ac1c60d4fe
i2c: add clean {write, read}data functions
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-20 12:03:31 +00:00
Brendan Le Foll
745054e7d0
spi.c: fix identation
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-19 23:46:33 +00:00
Brendan Le Foll
d2ced53344
spi.c: check memory allocation for context was succesful
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-19 23:46:30 +00:00
Brendan Le Foll
e84baf6636
gpio.c: free context if we fail to write to export
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-19 23:46:25 +00:00
Thomas Ingleby
9014fc61a0
galileo gen 2: port mmap to new structure
...
Feature parity pre mem branch.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:46:09 +00:00
Thomas Ingleby
cf43031994
galileo gen 1: port mmap to new structure
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:46:09 +00:00
Thomas Ingleby
d2457c29d3
edison: add mmap support. read & write
...
Closes #27
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:45:46 +00:00
Thomas Ingleby
3865bebe8d
mmap: remove implementation of mmap gpio
...
Instead of trying to have an implementation that covers most platforms
Leave all mmap up to platform definition. Through function pointers.
gpio_mmap_setup sets up the mmap
Within the internal gpio context struct two more function pointers now
exist mmap_read & mmap_write. They exist there so each context can its
own function for handling a write and read.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:41:47 +00:00
Thomas Ingleby
5d7c85c7a1
pwm: move pwm setup to module
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:41:47 +00:00
Thomas Ingleby
e39268899c
spi: move spi setup from core into module
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:41:47 +00:00
Thomas Ingleby
ffd38bb68c
i2c: move i2c setup from core into module
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:40:48 +00:00
Thomas Ingleby
66c5011cfb
aio: move aio setup from core into module
...
Added additional syslog messages for debugging
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:40:48 +00:00
Thomas Ingleby
401f0cfe65
gpio: move gpio setup from core into module
...
Added syslog lines for easier fault investigation
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:40:48 +00:00
Thomas Ingleby
1cbdef1ab3
internal: add function protype for mux setup.
...
Now accesible from all mraa modules
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:40:48 +00:00
Thomas Ingleby
2be24d8887
spi: expose defined CS
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 17:40:48 +00:00
Thomas Ingleby
a3d5af9ea1
edison: fix gpio mapping on j18-8
...
Closes #37
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 16:06:56 +00:00
Thomas Ingleby
ee1f7281dc
galileo gen2: add uart definitions
...
Also added hook for setting output buffers.
fixes #36
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-11-17 15:39:25 +00:00
Matthias Hahn
cf6c3dd144
pwm: syslog message typo correction
...
Signed-off-by: Matthias Hahn <matthias.hahn@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-06 15:23:25 +00:00
Brendan Le Foll
274d5b2d50
i2c: use uint8_t when appropriate and remove char
...
Object APIs used signed chars for some operations which are not appropriate
when using i2c.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-05 11:25:38 +00:00
Bernd Barsuhn
428c99f940
gpio: fix identation
...
Signed-off-by: Bernd Barsuhn <bernd.barsuhn@me.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-04 10:13:45 +00:00
Bernd Barsuhn
2a851d7cc7
gpio: make mraa_gpio_isr_exit block until the interrupt handling thread is terminated.
...
Signed-off-by: Bernd Barsuhn <bernd.barsuhn@me.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-04 10:12:34 +00:00
Anton Krasovsky
cbf4c7447f
i2c: add api call to read byte from a specified register
...
Signed-off-by: Anton Krasovsky <anton@no-mad.net >
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-31 01:17:17 +00:00
Thomas Ingleby
c852685975
spi: expose defined CS
...
Add missing information for Gen 2 CS info
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-30 20:41:51 +00:00
Thomas Ingleby
3b01af1da1
pwm: add period limits, warn over syslog
...
Added minimum, maximum and default period settings to board definitions
PWM will now have a default period as defined in the board defintion.
When using pwm_write() writing 1.0f or above will default to 100%.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-30 12:22:40 +00:00
Maximilian von Tschirschnitz
a202b3fd17
pwm: fixed wrong line ending being checked by strtol
...
Move from fopen to POSIX open introduced this bug in strtol
Signed-off-by: Maximilian von Tschirschnitz <maximilian.tschirschnitz@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-29 13:01:53 +00:00
Thomas Ingleby
af3aa9d8b9
de3815: add initial doc
...
Also removed printf used during inital implementation.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-24 14:21:20 +01:00
Thomas Ingleby
b59aecb70d
de3815: added PWM support
...
There are two PWM pins on the custom solutions header.
10-PWM[0] and 11-PWM[1] in mraa.
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-24 14:21:20 +01:00
Thomas Ingleby
7c807b3acc
intel_de3815: initial support for Baytrail NUC
...
* I2C only currently supported, Both bus 0 and 1
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-24 14:21:20 +01:00
Brendan Le Foll
418c198999
spi: attempt to fix spi lsb mode
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-23 18:05:36 +01:00
Brendan Le Foll
535d92ab79
i2c: use default i2c bus in board config if invalid
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-23 18:05:07 +01:00
Brendan Le Foll
a6b3d384b2
syslog: unify error msg style
...
syslog messages should be written as <module>: Message in order to increase
readability and usefulness
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-22 21:09:11 +01:00
Brendan Le Foll
a67d71ed90
spi: fix mraa_spi_bit_per_word call to use correct ioctl
...
This should fix #14
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-22 21:09:03 +01:00
Brendan Le Foll
8b7c1d80cb
intel_edison_fab_c.c: If i2c bus number is invalid use the default bus (6)
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-22 20:51:13 +01:00
Thomas Ingleby
232fb2cf5e
edison: fix uart missing information
...
This should fix #19
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-20 19:14:41 +01:00
Thomas Ingleby
77be6da29c
uart: add pre uart hook
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-20 18:43:58 +01:00
Brendan Le Foll
d49f20b7ba
i2c: mraa_i2c_frequency now returns correct returns
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-20 10:01:53 +01:00
Thomas Ingleby
c8a99ee8e4
edison: add uart definitions
...
Needed to use a hook to make sure the SoC pins for RX TX are in the
right place.
Also added a line in documentation listed what interface is available.
This resolves #18
Co-Authored-By: Kurt Eckhardt <kurte@rockisland.com >
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-19 16:29:27 +01:00
Thomas Ingleby
071951e926
uart: add init post hook
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-10-19 16:14:24 +01:00
Brendan Le Foll
d734a661fd
spi: make mraa_spi_write_buf call mraa_transfer_buf
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-19 09:01:01 +01:00
Kurt Eckhardt
2a11e31052
spi: Add SPI transfer function that pass in RX/TX
...
When using SPI, I prefer to not have to do malloc/free functions for each
transfer, so why not have a transfer function that you can pass in both
buffers. With my ILI9341 TFT display code that gave some perf wins, also more
of a win, you can pass in NULL for recv buffer and the underlying device driver
does not have to copy the data.
Signed-off-by: Kurt Eckhardt <kurte@rockisland.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-10-19 09:00:57 +01:00