[
https://issues.apache.org/jira/browse/MYNEWT-174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15170729#comment-15170729
]
Sterling Hughes commented on MYNEWT-174:
----------------------------------------
Let me also detail the answer I'd love to hear, but I haven't looked closely
enough to know if it's true.
mbed-hal is repurposable enough, that we can map their APIs into our APIs. We
are then able to have a scheme that goes->
hw/hal depends on hw-hal capability
mbed-hal (https://github.com/ARMmbed/mbed-hal) satisfies hw-hal capability, but
requires mbed-hw-hal-impl capability
mbed-hw-hal-impl capability is exposed by mbed-hal-silabs, or
mbed-hal-atmel-smr21g18a
That way, for ARM cores we can leverage all the work that's going into mbed's
HALs, and vice versa.
It would further be great if we could automatically resolve these dependencies
without much custom maintenance (i.e. understanding the module.json files).
That said, if we needed to have a "pkg.yml" in these files in order to have it
work with our OS, I think we could create those and then submit back pull
requests. After all, maintaining some package files is probably not a huge
deal for chip vendors, versus having to implement a HAL twice.
> Evaluate mbed-hal overlap, and see where we can use functionality
> -----------------------------------------------------------------
>
> Key: MYNEWT-174
> URL: https://issues.apache.org/jira/browse/MYNEWT-174
> Project: Mynewt
> Issue Type: Improvement
> Components: HAL, OS
> Reporter: Sterling Hughes
> Assignee: Marko Kiiskila
> Fix For: v0_8_0_beta2
>
>
> Specifically I'd like to understand:
> - Can we leverage the mbed-hal-*, cmsis-core drivers. A fair amount of work
> has been done here, perhaps we can either use their APIs, or have an mbed-hal
> adaption layer. Examples of mbed-hal are:
> https://github.com/ARMmbed/mbed-hal-silabs
> https://github.com/ARMmbed/cmsis-core-stm32f4
> https://github.com/ARMmbed/nrf51-sdk
> https://github.com/ARMmbed/mbed-hal-atmel-samr21g18a
> https://github.com/ARMmbed/mbed-hal-atmel-samd21g18a
> - Can newt be converted to understand module.json files? Should we have a
> compiler that can take an mbed package with module.json and convert it into a
> pkg.yml? Should we switch to module.json format?
> Out of this, let's decide what goes in b1 and b2.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)