ARMmbed / mbed-hal-st-stm32f4

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

Added __ADC2_CLK_ENABLE and __ADC3_CLK_ENABLE #40

Open andreaslarssonublox opened 8 years ago

andreaslarssonublox commented 8 years ago

ADC2 and ADC3 clocks are needed for stm32f439 ADCs to work.

0xc0170 commented 8 years ago

Can we get which ADC is the handle to, obj->adc contains the information, the question is how to use it? Lookup table ? To enable only those ADC clocks which are being used?

0xc0170 commented 8 years ago

@bcostm

bcostm commented 8 years ago

Yes exactely. You must do the same thing as done in mbedClassic analogin_api.c file: https://github.com/mbedmicro/mbed/blob/master/libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32F4/analogin_api.c But ADC2 is missing in this file and must be added.

andreaslarssonublox commented 8 years ago

Ok, I've updated the file.

bcostm commented 6 years ago

Apparently you still use this repo. Why ? It was for mbed-os-3. We (@ARMmbed/team-st-mcd) don't maintain it anymore since several years...

@0xc0170 Can we remove all these repos ?

0xc0170 commented 6 years ago

@0xc0170 Can we remove all these repos ?

That is a good question, I believe this could be still used, we rather just add a note that its deprecated. We can add it to the repo description?

andreaslarssonublox commented 6 years ago

Yes, we're still using it for mbed 3 but deprecating it sounds good.