Age | Commit message (Collapse) | Author |
|
This CL adds the C APIs to act on UART devices as well as unit tests and
an example.
Bug: 27898961
Change-Id: I23f627d69fb3440fec53bded20bd3b408c9ed591
|
|
This CL exposes the following functions in the C API:
* write
* writeRegBuffer
* read
* readRegByte
* readRegWord
* readRegBuffer
Bug: 27831222
Change-Id: I8bcdc1cc949e5b13d490ce37eb29b6e706df72b4
|
|
This is not useful as we don't expect users to take runtime decisions
based on this.
Bug: 27836221
Bug: 27836293
Change-Id: Ieef02af25b222ec52cfe7f35d91f31707d438267
|
|
This CL adds an interface to set the delay to wait between two SPI
messages.
Bug: 27923916
Change-Id: Idb1fa208b974d489414d63d67ad5fa702e8b03e4
|
|
Bug: 27675223
Change-Id: I34289c5caa7ba7d5d1a1f419829830d3a221ead0
|
|
Fixes two things:
* Trailing commas in enums are not supported in C89.
* We must type define the pin_mux_callbacks structs in order to mention
it without the struct keyword.
Bug: 27601668
Change-Id: Ie55e5e9ded69900a0848d192936ab1bb75c34c70
|
|
Add basic support for I2C. Only Read Register
command supported so far.
BUG: 26776321
TEST: Testing I2C temp sensor
Change-Id: Id4a2e96df489c64b2724ac3995557459f285667c
|
|
This CL adds:
* LED support in the AIDL interface.
* LED support and implementation in the C API.
* an example blinking an LED.
Bug: 27580067
Change-Id: Ia8334006626c2683aa8ce40b0b90efc32585a29c
|
|
We no longer have peripheral manager specific error code. The
documentation should be more precise on what the error code is.
Bug: 27477643
Change-Id: Ib685aa11f3b6f18d1a4611410f91571230c795c3
|
|
When an interrupt triggers on a GPIO, we must lseek and read the value
in order to be able to poll again. As we don't guarantee that the file
descriptor we use to poll will be the value file, add a convenience
function to reset the file descriptor's state.
To illustrate how to use it, we provide an example that will watch a
GPIO for interrupt and print a message when the GPIO's value changes.
This is implemented with both select and poll.
Bug: 26778811
Change-Id: Ib25338599a8e08d7734839171da6204bb64a2ded
|
|
Errno is expressive enough to cover all error cases we can encounter. It
is also standard and more convinient to use.
All errors will be reported across the AIDL interface via service
specific error codes with values from errno.
On success, we allow reporting Status::ok() for convenience which
translates to a service specific error code 0.
Bug: 27477643
Change-Id: Ifa453d9f350cc2e06aea0f6d5c64eb5928404d88
|
|
Fixed bug in SPI transfer
Change-Id: I384a94e330a9962902044652a1d3cd5ae016ce0d
|
|
Implement the backend IOCTLS for SPI
BUG: 27555414
Change-Id: I4be6b9e33dd7b6d2483a04f368289a3229df0439
TEST: Tested with an RGB led
|
|
Added docs for errors, gpio and the client
BUG: 27482120
TEST: Generated a devsite.
Change-Id: I514c75f6c7e8024996025cb10e0ae0860fc456f5
|
|
This CL defines and implements the C API used by the developer to access
the SPI interface.
Bug: 27530022
Change-Id: Id3380191fa8d81ff749e3db9d208dff25deed3fb
|
|
This CL adds support to GPIO for:
* setting the edge interrupt trigger.
* setting the active low type.
* passing a file descriptor to the client that can be used to poll on
interrupts.
Bug: 26778811
Change-Id: I6c25eef5d6d02343316d55b2280398a1df59c091
|
|
This CL defines the C API that will be used by developers.
Bug: 26778811
Change-Id: I1d5d3e3232f058eb573df49a02ee9f3da1e9e9ce
|
|
Set up all the boilerplate to setup the IPC
interface using AIDL.
Also add an example CLI tool.
Change-Id: Icd2837b99deb016f8b70e9823ba96c44fd36286f
TEST: service registers and example runs.
|
|
Add barebones client, daemon and Android.mk files
Change-Id: I5eea0da35ffa6ec6e03a0add1e9b1d2e397f38bf
TEST: Services starts on the emulator
|