Skip to content

Commit a1a84b7

Browse files
committed
Updated STM32F0xx HAL Drivers to v1.7.0
Included in STM32CubeF0 FW V1.9.0 Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
1 parent 37190f2 commit a1a84b7

File tree

86 files changed

+2740
-2653
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+2740
-2653
lines changed

system/Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h

Lines changed: 144 additions & 102 deletions
Large diffs are not rendered by default.

system/Drivers/STM32F0xx_HAL_Driver/Inc/stm32_assert_template.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@
5050
#ifdef USE_FULL_ASSERT
5151
/**
5252
* @brief The assert_param macro is used for function's parameters check.
53-
* @param expr: If expr is false, it calls assert_failed function
53+
* @param expr If expr is false, it calls assert_failed function
5454
* which reports the name of the source file and the source
5555
* line number of the call that failed.
5656
* If expr is true, it returns no value.
5757
* @retval None
5858
*/
59-
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
59+
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((char *)__FILE__, __LINE__))
6060
/* Exported functions ------------------------------------------------------- */
61-
void assert_failed(uint8_t* file, uint32_t line);
61+
void assert_failed(char* file, uint32_t line);
6262
#else
6363
#define assert_param(expr) ((void)0U)
6464
#endif /* USE_FULL_ASSERT */

system/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@
376376
#if defined(SYSCFG_CFGR1_PA11_PA12_RMP)
377377
/** @defgroup HAL_Pin_remap HAL Pin remap
378378
* @brief Pin remapping enable/disable macros
379-
* @param __PIN_REMAP__: This parameter can be a value of @ref HAL_Pin_remapping
379+
* @param __PIN_REMAP__ This parameter can be a value of @ref HAL_Pin_remapping
380380
* @{
381381
*/
382382
#define __HAL_REMAP_PIN_ENABLE(__PIN_REMAP__) do {assert_param(IS_HAL_REMAP_PIN((__PIN_REMAP__))); \
@@ -391,7 +391,7 @@
391391
#endif /* SYSCFG_CFGR1_PA11_PA12_RMP */
392392

393393
/** @brief Fast-mode Plus driving capability enable/disable macros
394-
* @param __FASTMODEPLUS__: This parameter can be a value of @ref SYSCFG_FastModePlus_GPIO values.
394+
* @param __FASTMODEPLUS__ This parameter can be a value of @ref SYSCFG_FastModePlus_GPIO values.
395395
* That you can find above these macros.
396396
*/
397397
#define __HAL_SYSCFG_FASTMODEPLUS_ENABLE(__FASTMODEPLUS__) do {assert_param(IS_SYSCFG_FASTMODEPLUS((__FASTMODEPLUS__)));\
@@ -480,7 +480,7 @@
480480
/** @defgroup HAL_SYSCFG_IRDA_modulation_envelope_selection HAL SYSCFG IRDA modulation envelope selection
481481
* @brief selection of the modulation envelope signal macro, using bits [7:6] of SYS_CTRL(CFGR1) register
482482
* @note This feature is applicable on STM32F09x
483-
* @param __SOURCE__: This parameter can be a value of @ref HAL_IRDA_ENV_SEL
483+
* @param __SOURCE__ This parameter can be a value of @ref HAL_IRDA_ENV_SEL
484484
* @{
485485
*/
486486
#define __HAL_SYSCFG_IRDA_ENV_SELECTION(__SOURCE__) do {assert_param(IS_HAL_SYSCFG_IRDA_ENV_SEL((__SOURCE__))); \

system/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -460,15 +460,15 @@ typedef struct
460460

461461
/**
462462
* @brief Enable the ADC peripheral
463-
* @param __HANDLE__: ADC handle
463+
* @param __HANDLE__ ADC handle
464464
* @retval None
465465
*/
466466
#define __HAL_ADC_ENABLE(__HANDLE__) \
467467
((__HANDLE__)->Instance->CR |= ADC_CR_ADEN)
468468

469469
/**
470470
* @brief Disable the ADC peripheral
471-
* @param __HANDLE__: ADC handle
471+
* @param __HANDLE__ ADC handle
472472
* @retval None
473473
*/
474474
#define __HAL_ADC_DISABLE(__HANDLE__) \
@@ -479,8 +479,8 @@ typedef struct
479479

480480
/**
481481
* @brief Enable the ADC end of conversion interrupt.
482-
* @param __HANDLE__: ADC handle
483-
* @param __INTERRUPT__: ADC Interrupt
482+
* @param __HANDLE__ ADC handle
483+
* @param __INTERRUPT__ ADC Interrupt
484484
* This parameter can be any combination of the following values:
485485
* @arg ADC_IT_EOC: ADC End of Regular Conversion interrupt source
486486
* @arg ADC_IT_EOS: ADC End of Regular sequence of Conversions interrupt source
@@ -495,8 +495,8 @@ typedef struct
495495

496496
/**
497497
* @brief Disable the ADC end of conversion interrupt.
498-
* @param __HANDLE__: ADC handle
499-
* @param __INTERRUPT__: ADC Interrupt
498+
* @param __HANDLE__ ADC handle
499+
* @param __INTERRUPT__ ADC Interrupt
500500
* This parameter can be any combination of the following values:
501501
* @arg ADC_IT_EOC: ADC End of Regular Conversion interrupt source
502502
* @arg ADC_IT_EOS: ADC End of Regular sequence of Conversions interrupt source
@@ -510,8 +510,8 @@ typedef struct
510510
(((__HANDLE__)->Instance->IER) &= ~(__INTERRUPT__))
511511

512512
/** @brief Checks if the specified ADC interrupt source is enabled or disabled.
513-
* @param __HANDLE__: ADC handle
514-
* @param __INTERRUPT__: ADC interrupt source to check
513+
* @param __HANDLE__ ADC handle
514+
* @param __INTERRUPT__ ADC interrupt source to check
515515
* This parameter can be any combination of the following values:
516516
* @arg ADC_IT_EOC: ADC End of Regular Conversion interrupt source
517517
* @arg ADC_IT_EOS: ADC End of Regular sequence of Conversions interrupt source
@@ -526,8 +526,8 @@ typedef struct
526526

527527
/**
528528
* @brief Get the selected ADC's flag status.
529-
* @param __HANDLE__: ADC handle
530-
* @param __FLAG__: ADC flag
529+
* @param __HANDLE__ ADC handle
530+
* @param __FLAG__ ADC flag
531531
* This parameter can be any combination of the following values:
532532
* @arg ADC_FLAG_EOC: ADC End of Regular conversion flag
533533
* @arg ADC_FLAG_EOS: ADC End of Regular sequence of Conversions flag
@@ -542,8 +542,8 @@ typedef struct
542542

543543
/**
544544
* @brief Clear the ADC's pending flags
545-
* @param __HANDLE__: ADC handle
546-
* @param __FLAG__: ADC flag
545+
* @param __HANDLE__ ADC handle
546+
* @param __FLAG__ ADC flag
547547
* This parameter can be any combination of the following values:
548548
* @arg ADC_FLAG_EOC: ADC End of Regular conversion flag
549549
* @arg ADC_FLAG_EOS: ADC End of Regular sequence of Conversions flag
@@ -558,7 +558,7 @@ typedef struct
558558
(((__HANDLE__)->Instance->ISR) = (__FLAG__))
559559

560560
/** @brief Reset ADC handle state
561-
* @param __HANDLE__: ADC handle
561+
* @param __HANDLE__ ADC handle
562562
* @retval None
563563
*/
564564
#define __HAL_ADC_RESET_HANDLE_STATE(__HANDLE__) \
@@ -580,7 +580,7 @@ typedef struct
580580

581581
/**
582582
* @brief Verification of hardware constraints before ADC can be enabled
583-
* @param __HANDLE__: ADC handle
583+
* @param __HANDLE__ ADC handle
584584
* @retval SET (ADC can be enabled) or RESET (ADC cannot be enabled)
585585
*/
586586
#define ADC_ENABLING_CONDITIONS(__HANDLE__) \
@@ -591,7 +591,7 @@ typedef struct
591591

592592
/**
593593
* @brief Verification of hardware constraints before ADC can be disabled
594-
* @param __HANDLE__: ADC handle
594+
* @param __HANDLE__ ADC handle
595595
* @retval SET (ADC can be disabled) or RESET (ADC cannot be disabled)
596596
*/
597597
#define ADC_DISABLING_CONDITIONS(__HANDLE__) \
@@ -601,7 +601,7 @@ typedef struct
601601

602602
/**
603603
* @brief Verification of ADC state: enabled or disabled
604-
* @param __HANDLE__: ADC handle
604+
* @param __HANDLE__ ADC handle
605605
* @retval SET (ADC enabled) or RESET (ADC disabled)
606606
*/
607607
/* Note: If low power mode AutoPowerOff is enabled, power-on/off phases are */
@@ -616,15 +616,15 @@ typedef struct
616616
/**
617617
* @brief Test if conversion trigger of regular group is software start
618618
* or external trigger.
619-
* @param __HANDLE__: ADC handle
619+
* @param __HANDLE__ ADC handle
620620
* @retval SET (software start) or RESET (external trigger)
621621
*/
622622
#define ADC_IS_SOFTWARE_START_REGULAR(__HANDLE__) \
623623
(((__HANDLE__)->Instance->CFGR1 & ADC_CFGR1_EXTEN) == RESET)
624624

625625
/**
626626
* @brief Check if no conversion on going on regular group
627-
* @param __HANDLE__: ADC handle
627+
* @param __HANDLE__ ADC handle
628628
* @retval SET (conversion is on going) or RESET (no conversion is on going)
629629
*/
630630
#define ADC_IS_CONVERSION_ONGOING_REGULAR(__HANDLE__) \
@@ -634,7 +634,7 @@ typedef struct
634634
/**
635635
* @brief Returns resolution bits in CFGR1 register: RES[1:0].
636636
* Returned value is among parameters to @ref ADC_Resolution.
637-
* @param __HANDLE__: ADC handle
637+
* @param __HANDLE__ ADC handle
638638
* @retval None
639639
*/
640640
#define ADC_GET_RESOLUTION(__HANDLE__) \
@@ -643,7 +643,7 @@ typedef struct
643643
/**
644644
* @brief Returns ADC sample time bits in SMPR register: SMP[2:0].
645645
* Returned value is among parameters to @ref ADC_Resolution.
646-
* @param __HANDLE__: ADC handle
646+
* @param __HANDLE__ ADC handle
647647
* @retval None
648648
*/
649649
#define ADC_GET_SAMPLINGTIME(__HANDLE__) \
@@ -660,7 +660,7 @@ typedef struct
660660

661661
/**
662662
* @brief Clear ADC error code (set it to error code: "no error")
663-
* @param __HANDLE__: ADC handle
663+
* @param __HANDLE__ ADC handle
664664
* @retval None
665665
*/
666666
#define ADC_CLEAR_ERRORCODE(__HANDLE__) \
@@ -669,7 +669,7 @@ typedef struct
669669

670670
/**
671671
* @brief Configure the channel number into channel selection register
672-
* @param _CHANNEL_: ADC Channel
672+
* @param _CHANNEL_ ADC Channel
673673
* @retval None
674674
*/
675675
/* This function converts ADC channels from numbers (see defgroup ADC_channels)
@@ -699,7 +699,7 @@ typedef struct
699699

700700
/**
701701
* @brief Set the ADC's sample time
702-
* @param _SAMPLETIME_: Sample time parameter.
702+
* @param _SAMPLETIME_ Sample time parameter.
703703
* @retval None
704704
*/
705705
/* Note: ADC sampling time set using mask ADC_SMPR_SMP due to parameter */
@@ -712,47 +712,47 @@ typedef struct
712712

713713
/**
714714
* @brief Set the Analog Watchdog 1 channel.
715-
* @param _CHANNEL_: channel to be monitored by Analog Watchdog 1.
715+
* @param _CHANNEL_ channel to be monitored by Analog Watchdog 1.
716716
* @retval None
717717
*/
718718
#define ADC_CFGR_AWDCH(_CHANNEL_) \
719719
((_CHANNEL_) << 26U)
720720

721721
/**
722722
* @brief Enable ADC discontinuous conversion mode for regular group
723-
* @param _REG_DISCONTINUOUS_MODE_: Regular discontinuous mode.
723+
* @param _REG_DISCONTINUOUS_MODE_ Regular discontinuous mode.
724724
* @retval None
725725
*/
726726
#define ADC_CFGR1_REG_DISCCONTINUOUS(_REG_DISCONTINUOUS_MODE_) \
727727
((_REG_DISCONTINUOUS_MODE_) << 16U)
728728

729729
/**
730730
* @brief Enable the ADC auto off mode.
731-
* @param _AUTOOFF_: Auto off bit enable or disable.
731+
* @param _AUTOOFF_ Auto off bit enable or disable.
732732
* @retval None
733733
*/
734734
#define ADC_CFGR1_AUTOOFF(_AUTOOFF_) \
735735
((_AUTOOFF_) << 15U)
736736

737737
/**
738738
* @brief Enable the ADC auto delay mode.
739-
* @param _AUTOWAIT_: Auto delay bit enable or disable.
739+
* @param _AUTOWAIT_ Auto delay bit enable or disable.
740740
* @retval None
741741
*/
742742
#define ADC_CFGR1_AUTOWAIT(_AUTOWAIT_) \
743743
((_AUTOWAIT_) << 14U)
744744

745745
/**
746746
* @brief Enable ADC continuous conversion mode.
747-
* @param _CONTINUOUS_MODE_: Continuous mode.
747+
* @param _CONTINUOUS_MODE_ Continuous mode.
748748
* @retval None
749749
*/
750750
#define ADC_CFGR1_CONTINUOUS(_CONTINUOUS_MODE_) \
751751
((_CONTINUOUS_MODE_) << 13U)
752752

753753
/**
754754
* @brief Enable ADC overrun mode.
755-
* @param _OVERRUN_MODE_: Overrun mode.
755+
* @param _OVERRUN_MODE_ Overrun mode.
756756
* @retval Overun bit setting to be programmed into CFGR register
757757
*/
758758
/* Note: Bit ADC_CFGR1_OVRMOD not used directly in constant */
@@ -765,7 +765,7 @@ typedef struct
765765

766766
/**
767767
* @brief Enable ADC scan mode to convert multiple ranks with sequencer.
768-
* @param _SCAN_MODE_: Scan conversion mode.
768+
* @param _SCAN_MODE_ Scan conversion mode.
769769
* @retval None
770770
*/
771771
/* Note: Scan mode set using this macro (instead of parameter direct set) */
@@ -779,15 +779,15 @@ typedef struct
779779

780780
/**
781781
* @brief Enable the ADC DMA continuous request.
782-
* @param _DMACONTREQ_MODE_: DMA continuous request mode.
782+
* @param _DMACONTREQ_MODE_ DMA continuous request mode.
783783
* @retval None
784784
*/
785785
#define ADC_CFGR1_DMACONTREQ(_DMACONTREQ_MODE_) \
786786
((_DMACONTREQ_MODE_) << 1U)
787787

788788
/**
789789
* @brief Configure the analog watchdog high threshold into register TR.
790-
* @param _Threshold_: Threshold value
790+
* @param _Threshold_ Threshold value
791791
* @retval None
792792
*/
793793
#define ADC_TRX_HIGHTHRESHOLD(_Threshold_) \
@@ -801,8 +801,8 @@ typedef struct
801801
* If resolution 8 bits, shift of 4 ranks on the left.
802802
* If resolution 6 bits, shift of 6 ranks on the left.
803803
* therefore, shift = (12 - resolution) = 12 - (12- (((RES[1:0]) >> 3)*2))
804-
* @param __HANDLE__: ADC handle
805-
* @param _Threshold_: Value to be shifted
804+
* @param __HANDLE__ ADC handle
805+
* @param _Threshold_ Value to be shifted
806806
* @retval None
807807
*/
808808
#define ADC_AWD1THRESHOLD_SHIFT_RESOLUTION(__HANDLE__, _Threshold_) \

system/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
* VrefInt/TempSensor/Vbat
152152
* Note: On STM32F0, availability of internal channel Vbat depends on
153153
* devices lines.
154-
* @param __CHANNEL__: ADC channel
154+
* @param __CHANNEL__ ADC channel
155155
* @retval None
156156
*/
157157
#if !defined(STM32F030x6) && !defined(STM32F030x8) && !defined(STM32F070x6) && !defined(STM32F070xB) && !defined(STM32F030xC)
@@ -173,7 +173,7 @@
173173
* VrefInt/TempSensor/Vbat.
174174
* Note: On STM32F0, availability of internal channel Vbat depends on
175175
* devices lines.
176-
* @param __CHANNEL__: ADC channel
176+
* @param __CHANNEL__ ADC channel
177177
* @retval Bit of register ADC_CCR
178178
*/
179179
#if !defined(STM32F030x6) && !defined(STM32F030x8) && !defined(STM32F070x6) && !defined(STM32F070xB) && !defined(STM32F030xC)

0 commit comments

Comments
 (0)