ARMmbed / mbed-hal-st-stm32f4

mbed HAL for ST STM32F4-series microcontrollers
Other
7 stars 21 forks source link

Move common files from STM32F4* chip HALs here. #26

Closed niklarm closed 8 years ago

niklarm commented 8 years ago

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.

See https://github.com/ARMmbed/mbed-hal-st-stm32f429zi/pull/19.

@bogdanm @0xc0170 @bremoran @autopulated

0xc0170 commented 8 years ago

LGTM, will run quick test before merging

bremoran commented 8 years ago

LGTM