Permalink
Browse files

[l1] ADC: support disabling injected trigges

Was a missing api implementation required for using injected groups.
  • Loading branch information...
1 parent c33ab03 commit a42b65d89f9fa30f8b1a81fca45ab33026405e30 @karlp committed Dec 13, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/stm32/l1/adc_specific_l1.c
@@ -152,3 +152,13 @@ void adc_disable_external_trigger_regular(u32 adc)
ADC_CR2(adc) &= ~ADC_CR2_EXTEN_MASK;
}
+/*-----------------------------------------------------------------------------*/
+/** @brief ADC Disable an External Trigger for Injected Channels
+
+@param[in] adc Unsigned int32. ADC block register address base @ref adc_reg_base.
+*/
+
+void adc_disable_external_trigger_injected(u32 adc)
+{
+ ADC_CR2(adc) &= ~ADC_CR2_JEXTEN_MASK;
+}

0 comments on commit a42b65d

Please sign in to comment.