mirror of https://github.com/ARMmbed/mbed-os.git
STM32H7 : remove warning
[Warning] stm32h7xx_hal_hrtim.c@1621,21: equality comparison with extraneous parentheses [-Wparentheses-equality] [Warning] stm32h7xx_hal_hrtim.c@1625,21: equality comparison with extraneous parentheses [-Wparentheses-equality] [Warning] stm32h7xx_hal_hrtim.c@2238,21: equality comparison with extraneous parentheses [-Wparentheses-equality] [Warning] stm32h7xx_hal_hrtim.c@2242,21: equality comparison with extraneous parentheses [-Wparentheses-equality] [Warning] stm32h7xx_hal_hrtim.c@5332,21: equality comparison with extraneous parentheses [-Wparentheses-equality] [Warning] stm32h7xx_hal_hrtim.c@5767,21: equality comparison with extraneous parentheses [-Wparentheses-equality] [Warning] stm32h7xx_hal_hrtim.c@5771,21: equality comparison with extraneous parentheses [-Wparentheses-equality] [Warning] analogin_device.c@63,30: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare]pull/15193/head
parent
3237bff990
commit
de3f9efb67
|
@ -1618,11 +1618,11 @@ HAL_StatusTypeDef HAL_HRTIM_SimpleOCStart_DMA(HRTIM_HandleTypeDef * hhrtim,
|
|||
/* Check the parameters */
|
||||
assert_param(IS_HRTIM_TIMER_OUTPUT(TimerIdx, OCChannel));
|
||||
|
||||
if((hhrtim->State == HAL_HRTIM_STATE_BUSY))
|
||||
if (hhrtim->State == HAL_HRTIM_STATE_BUSY)
|
||||
{
|
||||
return HAL_BUSY;
|
||||
}
|
||||
if((hhrtim->State == HAL_HRTIM_STATE_READY))
|
||||
if (hhrtim->State == HAL_HRTIM_STATE_READY)
|
||||
{
|
||||
if ((SrcAddr == 0U ) || (DestAddr == 0U ) || (Length == 0U))
|
||||
{
|
||||
|
@ -2235,11 +2235,11 @@ HAL_StatusTypeDef HAL_HRTIM_SimplePWMStart_DMA(HRTIM_HandleTypeDef * hhrtim,
|
|||
/* Check the parameters */
|
||||
assert_param(IS_HRTIM_TIMER_OUTPUT(TimerIdx, PWMChannel));
|
||||
|
||||
if((hhrtim->State == HAL_HRTIM_STATE_BUSY))
|
||||
if (hhrtim->State == HAL_HRTIM_STATE_BUSY)
|
||||
{
|
||||
return HAL_BUSY;
|
||||
}
|
||||
if((hhrtim->State == HAL_HRTIM_STATE_READY))
|
||||
if (hhrtim->State == HAL_HRTIM_STATE_READY)
|
||||
{
|
||||
if ((SrcAddr == 0U ) || (DestAddr == 0U ) || (Length == 0U))
|
||||
{
|
||||
|
@ -5329,7 +5329,7 @@ HAL_StatusTypeDef HAL_HRTIM_WaveformCountStart_DMA(HRTIM_HandleTypeDef * hhrtim,
|
|||
/* Check the parameters */
|
||||
assert_param(IS_HRTIM_TIMERID(Timers));
|
||||
|
||||
if((hhrtim->State == HAL_HRTIM_STATE_BUSY))
|
||||
if (hhrtim->State == HAL_HRTIM_STATE_BUSY)
|
||||
{
|
||||
return HAL_BUSY;
|
||||
}
|
||||
|
@ -5764,11 +5764,11 @@ HAL_StatusTypeDef HAL_HRTIM_BurstDMATransfer(HRTIM_HandleTypeDef *hhrtim,
|
|||
/* Check the parameters */
|
||||
assert_param(IS_HRTIM_TIMERINDEX(TimerIdx));
|
||||
|
||||
if((hhrtim->State == HAL_HRTIM_STATE_BUSY))
|
||||
if (hhrtim->State == HAL_HRTIM_STATE_BUSY)
|
||||
{
|
||||
return HAL_BUSY;
|
||||
}
|
||||
if((hhrtim->State == HAL_HRTIM_STATE_READY))
|
||||
if (hhrtim->State == HAL_HRTIM_STATE_READY)
|
||||
{
|
||||
if ((BurstBufferAddress == 0U ) || (BurstBufferLength == 0U))
|
||||
{
|
||||
|
|
|
@ -60,7 +60,7 @@ void analogin_init(analogin_t *obj, PinName pin)
|
|||
// ADC Internal Channels "pins" (Temperature, Vref, Vbat, ...)
|
||||
// are described in PinNames.h and PeripheralPins.c
|
||||
// Pin value must be between 0xF0 and 0xFF
|
||||
if ((pin < 0xF0) || (pin >= ALT0)) {
|
||||
if ((pin < 0xF0) || (pin >= (PinName)ALT0)) {
|
||||
// Normal channels
|
||||
// Get the peripheral name from the pin and assign it to the object
|
||||
obj->handle.Instance = (ADC_TypeDef *)pinmap_peripheral(pin, PinMap_ADC);
|
||||
|
|
Loading…
Reference in New Issue