ADC lld api inconsistency?

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
User avatar
lilvinz
Posts: 130
Joined: Sat Dec 21, 2013 2:56 pm
Has thanked: 1 time
Been thanked: 6 times

ADC lld api inconsistency?

Post by lilvinz »

Hi Giovanni,

is there a reason for the adc lld api to be different among stm32 platforms?
E.g. i am missing adcSTM32Calibrate(), adcSTM32EnableTSVREFE(), and adcSTM32DisableTSVREFE() for the STM32F1xx.

Cheers,

Vinz
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: ADC lld api inconsistency?

Post by Giovanni »

The APIs marked as "STM32" in the name are platform-specific, those feature are not even portable across the various STM32s. The ADC is the peripheral that always change for some reason.

Giovanni
User avatar
lilvinz
Posts: 130
Joined: Sat Dec 21, 2013 2:56 pm
Has thanked: 1 time
Been thanked: 6 times

Re: ADC lld api inconsistency?

Post by lilvinz »

Thanks for the reply.

Cheers,

Vinz
User avatar
lilvinz
Posts: 130
Joined: Sat Dec 21, 2013 2:56 pm
Has thanked: 1 time
Been thanked: 6 times

Re: ADC lld api inconsistency?

Post by lilvinz »

Is there a reason that the f1xx platform only supports ADC1?
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: ADC lld api inconsistency?

Post by Giovanni »

Not a technical reason, ADC3 could be supported too but it is very low in my priorities, F1s are very old devices.

Giovanni
Post Reply