You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mynewt.apache.org by Louie Lu <me...@louie.lu> on 2017/03/16 13:42:46 UTC
What is the different between drivers and hal module?
Hi everyone,
I'm now trying to make STM32F429 LCD work, the early stage video can saw at:
https://www.youtube.com/watch?v=TIhjllDWWTI
How should I choose this code to put under drivers or hw/hal, is there any
rules or convention to follow?
Thanks,
Louie.
Re: What is the different between drivers and hal module?
Posted by Vipul Rahane <vi...@runtime.io>.
I agree, right place for this would be drivers. Standard coding_style rules apply.
Regards,
Vipul Rahane
> On Mar 16, 2017, at 10:32 AM, Sterling Hughes <st...@gmail.com> wrote:
>
> Belongs in drivers IMO. Cool! Having a LCD driver would be awesome, and I’d love to get a GFX library into (or compatible with) Mynewt as well.
>
> On 16 Mar 2017, at 6:47, Fabio Utzig wrote:
>
>> I believe the agreed on convention is that the "hal" directory contains
>> SOC drivers that are available on every supported MCU model. Everything
>> else should go to "drivers" (which would be the case for your LCD
>> driver).
>>
>> On Thu, Mar 16, 2017, at 10:42 AM, Louie Lu wrote:
>>> Hi everyone,
>>>
>>> I'm now trying to make STM32F429 LCD work, the early stage video can saw
>>> at:
>>> https://www.youtube.com/watch?v=TIhjllDWWTI
>>>
>>> How should I choose this code to put under drivers or hw/hal, is there
>>> any
>>> rules or convention to follow?
>>>
>>> Thanks,
>>> Louie.
Re: What is the different between drivers and hal module?
Posted by Sterling Hughes <st...@gmail.com>.
Belongs in drivers IMO. Cool! Having a LCD driver would be awesome,
and I\u2019d love to get a GFX library into (or compatible with) Mynewt as
well.
On 16 Mar 2017, at 6:47, Fabio Utzig wrote:
> I believe the agreed on convention is that the "hal" directory
> contains
> SOC drivers that are available on every supported MCU model.
> Everything
> else should go to "drivers" (which would be the case for your LCD
> driver).
>
> On Thu, Mar 16, 2017, at 10:42 AM, Louie Lu wrote:
>> Hi everyone,
>>
>> I'm now trying to make STM32F429 LCD work, the early stage video can
>> saw
>> at:
>> https://www.youtube.com/watch?v=TIhjllDWWTI
>>
>> How should I choose this code to put under drivers or hw/hal, is
>> there
>> any
>> rules or convention to follow?
>>
>> Thanks,
>> Louie.
Re: What is the different between drivers and hal module?
Posted by Fabio Utzig <ut...@utzig.org>.
I believe the agreed on convention is that the "hal" directory contains
SOC drivers that are available on every supported MCU model. Everything
else should go to "drivers" (which would be the case for your LCD
driver).
On Thu, Mar 16, 2017, at 10:42 AM, Louie Lu wrote:
> Hi everyone,
>
> I'm now trying to make STM32F429 LCD work, the early stage video can saw
> at:
> https://www.youtube.com/watch?v=TIhjllDWWTI
>
> How should I choose this code to put under drivers or hw/hal, is there
> any
> rules or convention to follow?
>
> Thanks,
> Louie.