Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Palsson <karlp@etactica.com>2019-06-26 15:42:34 +0300
committerKarl Palsson <karlp@etactica.com>2019-06-27 17:53:09 +0300
commit8b4d952629f9c43a89939b83290bc2fe3fd46f0f (patch)
treefc24bc2ad2eb63f6a60ff92ca504c91e920e60e4
parent9b3c813399aa85409a6fa9b2b86a3b49eef372a8 (diff)
doc: stm32f3: adc: add missing parameters
Minor, link the adc peripheral parameter in a couple of places
-rw-r--r--lib/stm32/f3/adc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/stm32/f3/adc.c b/lib/stm32/f3/adc.c
index 9eb73dc2..e9a36846 100644
--- a/lib/stm32/f3/adc.c
+++ b/lib/stm32/f3/adc.c
@@ -587,10 +587,10 @@ void adc_set_injected_offset(uint32_t adc, uint8_t reg, uint32_t offset)
*
* The ADC clock taken from the APB2 clock can be scaled down by 2, 4, 6 or 8.
*
+ * @param adc peripheral of choice @ref adc_reg_base
* @param[in] prescale Unsigned int32. Prescale value for ADC Clock @ref
* adc_ccr_adcpre
-*/
-
+ */
void adc_set_clk_prescale(uint32_t adc, uint32_t prescale)
{
uint32_t reg32 = ((ADC_CCR(adc) & ~ADC_CCR_CKMODE_MASK) | prescale);
@@ -605,10 +605,10 @@ void adc_set_clk_prescale(uint32_t adc, uint32_t prescale)
*
* The various modes possible are described in the reference manual.
*
+ * @param adc peripheral of choice @ref adc_reg_base
* @param[in] mode Unsigned int32. Multiple mode selection from @ref
* adc_multi_mode
-*/
-
+ */
void adc_set_multi_mode(uint32_t adc, uint32_t mode)
{
ADC_CCR(adc) |= mode;