Inconsistent location of HAL driver object declaration
Inconsistent location of HAL driver object declaration
The HAL driver object is defined in either in the top level hal_xxx.h file, or the hal_xxx_lld.h file depending on the driver. There should be one consistent pattern across all drivers.
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: Inconsistent location of HAL driver object declaration
It is being moved at top level in new drivers, old drivers will be updated but it is not high priority.
Giovanni
Giovanni
Re: Inconsistent location of HAL driver object declaration
Giovanni wrote:It is being moved at top level in new drivers, old drivers will be updated but it is not high priority.
Giovanni
Cool, so the new standard is to have the definition in the top level header file, with platform specific structure members included as macros defined in the lld driver?
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: Inconsistent location of HAL driver object declaration
Correct, I made the change in order to avoid duplicating the structures and related types in all LLDs.
This thing has an impact on other platforms: AVR, e200 etc so I am not pushing it for older drivers.
Giovanni
This thing has an impact on other platforms: AVR, e200 etc so I am not pushing it for older drivers.
Giovanni
Who is online
Users browsing this forum: No registered users and 27 guests