It would be great if you would be willing to put the apache-license headers on all of this so it is officially licensed under the apache license.
Thanks! dg > On Feb 20, 2017, at 5:35 PM, Jacob Rosenthal <jakerosent...@gmail.com> wrote: > > Thanks again David for your example. Ive taken liberally from there and put > together what seems like a working nrf51 driver. Any input accepted. > https://github.com/jacobrosenthal/mynewt-nrf51-adc-driver > <https://github.com/jacobrosenthal/mynewt-nrf51-adc-driver> > > and used it in a ble battery service, again any input happily accepted. > https://github.com/jacobrosenthal/mynewt-nimble-services/tree/master/services/battery > > <https://github.com/jacobrosenthal/mynewt-nimble-services/tree/master/services/battery> > > Mynewt folks, > > In the spirit of the driver model, It seems like I should be be able to use > the os_dev_lookup function so both the adc driver and the battery service > can use the pkg.init functions so I dont have to do: > > adc = adc_nrf51_driver_init(); > rc = ble_svc_battery_init(adc); > > But instead can pass the adc name "adc0" via mynewt variable, however > os_dev_lookup isnt in the header. Any objection to exposing that? -- David G. Simmons (919) 534-5099 Web <https://davidgs.com/> • Blog <https://davidgs.com/davidgs_blog> • Linkedin <http://linkedin.com/in/davidgsimmons> • Twitter <http://twitter.com/TechEvangelist1> • GitHub <http://github.com/davidgs> /** Message digitally signed for security and authenticity. * If you cannot read the PGP.sig attachment, please go to * http://www.gnupg.com/ <http://www.gnupg.com/> Secure your email!!! * Public key available at keyserver.pgp.com <http://keyserver.pgp.com/> **/ ♺ This email uses 100% recycled electrons. Don't blow it by printing! There are only 2 hard things in computer science: Cache invalidation, naming things, and off-by-one errors.
signature.asc
Description: Message signed with OpenPGP