intel-iot-devkit / zupm

UPM C Driver staging repository for Zephyr. These drivers require ZMRAA and include Zephyr examples and project configuration files.
MIT License
3 stars 5 forks source link

urm37: show an example of statically defining mraa resources in a sta… #8

Closed jontrulson closed 7 years ago

jontrulson commented 8 years ago

…ndard way

This should not be merged. ignore the changes in urm37.h. All the good stuff is in urm37.c. This is for example purposes only.

It is just an example demonstrating how the resources needed by a driver (FTI) can be statically initialized.

Other options are available - in the future calls (or upmctl) could be used to query this array and allow changing certain items.

Currently, in the FTI descriptor struct, a list of upm_protocol_t's are returned. We could just pass this entire array via this mechanism. It would contain the same data, plus all of the specifics (pin, bus, etc).

Signed-off-by: Jon Trulson jtrulson@ics.com

pylbert commented 7 years ago

@jontrulson what's the status of this, ok to close?

jontrulson commented 7 years ago

Yes - it was submitted as an example for how we could generically specify resources for FTI, which does not seem to be going anywhere. I'll close it.