This is in preparation for removing these common files from the chip HALs in order to deduplicate code.
I also moved the PeriphalNames.h here instead of keeping that in the chip HAL, since the only way to know if a peripheral exists is to #if defined(PERIPHERAL_BASE).
This is how the peripheral drivers know which peripheral are available (see serial_api.c).
An alternative would be for the target to specify which peripherals are available, but that seems like unnecessary work, considering that the device header file already kind of does that for you.
This is in preparation for removing these common files from the chip HALs in order to deduplicate code.
I also moved the
PeriphalNames.h
here instead of keeping that in the chip HAL, since the only way to know if a peripheral exists is to#if defined(PERIPHERAL_BASE)
. This is how the peripheral drivers know which peripheral are available (seeserial_api.c
).An alternative would be for the target to specify which peripherals are available, but that seems like unnecessary work, considering that the device header file already kind of does that for you.
See https://github.com/ARMmbed/mbed-hal-st-stm32f429zi/pull/19.
@bogdanm @0xc0170 @bremoran @autopulated