mirror of https://github.com/ARMmbed/mbed-os.git
STM32G4 : remove warning
[Warning] serial_device.c@644,41: comparison of integer expressions of different signedness: 'PinName' and 'enum <anonymous>' [-Wsign-compare] [Warning] serial_device.c@644,41: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare] [Warning] serial_device.c@653,41: comparison of integer expressions of different signedness: 'PinName' and 'enum <anonymous>' [-Wsign-compare] [Warning] serial_device.c@653,41: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare] [Warning] serial_device.c@662,41: comparison of integer expressions of different signedness: 'PinName' and 'enum <anonymous>' [-Wsign-compare] [Warning] serial_device.c@662,41: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare] [Warning] serial_device.c@663,41: comparison of integer expressions of different signedness: 'PinName' and 'enum <anonymous>' [-Wsign-compare] [Warning] serial_device.c@663,41: comparison between 'PinName' and 'enum <anonymous>' [-Wenum-compare] [Warning] stm32g4xx_hal_hrtim.c@1817,21: equality comparison with extraneous parentheses [-Wparentheses-equality] [Warning] stm32g4xx_hal_hrtim.c@1821,21: equality comparison with extraneous parentheses [-Wparentheses-equality] [Warning] stm32g4xx_hal_hrtim.c@2461,21: equality comparison with extraneous parentheses [-Wparentheses-equality] [Warning] stm32g4xx_hal_hrtim.c@2465,21: equality comparison with extraneous parentheses [-Wparentheses-equality] [Warning] stm32g4xx_hal_hrtim.c@6600,21: equality comparison with extraneous parentheses [-Wparentheses-equality] [Warning] stm32g4xx_hal_hrtim.c@7162,21: equality comparison with extraneous parentheses [-Wparentheses-equality] [Warning] stm32g4xx_hal_hrtim.c@7166,21: equality comparison with extraneous parentheses [-Wparentheses-equality]pull/15193/head
parent
999d98a3d7
commit
1bf801a4f7
|
@ -1814,13 +1814,13 @@ 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))
|
||||
if ((SrcAddr == 0U ) || (DestAddr == 0U ) || (Length == 0U))
|
||||
{
|
||||
return HAL_ERROR;
|
||||
}
|
||||
|
@ -2458,13 +2458,13 @@ 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))
|
||||
if ((SrcAddr == 0U ) || (DestAddr == 0U ) || (Length == 0U))
|
||||
{
|
||||
return HAL_ERROR;
|
||||
}
|
||||
|
@ -6597,7 +6597,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;
|
||||
}
|
||||
|
@ -7159,13 +7159,13 @@ 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))
|
||||
if ((BurstBufferAddress == 0U ) || (BurstBufferLength == 0U))
|
||||
{
|
||||
return HAL_ERROR;
|
||||
}
|
||||
|
|
|
@ -641,7 +641,7 @@ static void _serial_set_flow_control_direct(serial_t *obj, FlowControl type, con
|
|||
}
|
||||
if (type == FlowControlRTS) {
|
||||
// Enable RTS
|
||||
MBED_ASSERT(pinmap->rx_flow_pin != (UARTName)NC);
|
||||
MBED_ASSERT(pinmap->rx_flow_pin != NC);
|
||||
obj_s->hw_flow_ctl = UART_HWCONTROL_RTS;
|
||||
obj_s->pin_rts = pinmap->rx_flow_pin;
|
||||
// Enable the pin for RTS function
|
||||
|
@ -650,7 +650,7 @@ static void _serial_set_flow_control_direct(serial_t *obj, FlowControl type, con
|
|||
}
|
||||
if (type == FlowControlCTS) {
|
||||
// Enable CTS
|
||||
MBED_ASSERT(pinmap->tx_flow_pin != (UARTName)NC);
|
||||
MBED_ASSERT(pinmap->tx_flow_pin != NC);
|
||||
obj_s->hw_flow_ctl = UART_HWCONTROL_CTS;
|
||||
obj_s->pin_cts = pinmap->tx_flow_pin;
|
||||
// Enable the pin for CTS function
|
||||
|
@ -659,8 +659,8 @@ static void _serial_set_flow_control_direct(serial_t *obj, FlowControl type, con
|
|||
}
|
||||
if (type == FlowControlRTSCTS) {
|
||||
// Enable CTS & RTS
|
||||
MBED_ASSERT(pinmap->rx_flow_pin != (UARTName)NC);
|
||||
MBED_ASSERT(pinmap->tx_flow_pin != (UARTName)NC);
|
||||
MBED_ASSERT(pinmap->rx_flow_pin != NC);
|
||||
MBED_ASSERT(pinmap->tx_flow_pin != NC);
|
||||
obj_s->hw_flow_ctl = UART_HWCONTROL_RTS_CTS;
|
||||
obj_s->pin_rts = pinmap->rx_flow_pin;;
|
||||
obj_s->pin_cts = pinmap->tx_flow_pin;;
|
||||
|
|
Loading…
Reference in New Issue