Skip to content

Commit 939bfe9

Browse files
authored
Merge pull request #13481 from jeromecoutant/PR_STM32G0_WARNING
STM32G0 compilation warning
2 parents 1950ac6 + 44b7c11 commit 939bfe9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

targets/TARGET_STM/TARGET_STM32G0/STM32Cube_FW/STM32G0xx_HAL_Driver/stm32g0xx_ll_rtc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3074,7 +3074,7 @@ __STATIC_INLINE void LL_RTC_BKP_SetRegister(TAMP_TypeDef *TAMPx, uint32_t Backup
30743074
*/
30753075
__STATIC_INLINE uint32_t LL_RTC_BKP_GetRegister(TAMP_TypeDef *TAMPx, uint32_t BackupRegister)
30763076
{
3077-
const register __IO uint32_t *tmp;
3077+
register __IO uint32_t *tmp;
30783078

30793079
tmp = &(TAMPx->BKP0R) + BackupRegister;
30803080

targets/TARGET_STM/TARGET_STM32G0/serial_device.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ static void _serial_set_flow_control_direct(serial_t *obj, FlowControl type, con
647647
}
648648
if (type == FlowControlRTS) {
649649
// Enable RTS
650-
MBED_ASSERT(pinmap->rx_flow_pin != (UARTName)NC);
650+
MBED_ASSERT(pinmap->rx_flow_pin != NC);
651651
obj_s->hw_flow_ctl = UART_HWCONTROL_RTS;
652652
obj_s->pin_rts = pinmap->rx_flow_pin;
653653
// Enable the pin for RTS function
@@ -656,7 +656,7 @@ static void _serial_set_flow_control_direct(serial_t *obj, FlowControl type, con
656656
}
657657
if (type == FlowControlCTS) {
658658
// Enable CTS
659-
MBED_ASSERT(pinmap->tx_flow_pin != (UARTName)NC);
659+
MBED_ASSERT(pinmap->tx_flow_pin != NC);
660660
obj_s->hw_flow_ctl = UART_HWCONTROL_CTS;
661661
obj_s->pin_cts = pinmap->tx_flow_pin;
662662
// Enable the pin for CTS function
@@ -665,8 +665,8 @@ static void _serial_set_flow_control_direct(serial_t *obj, FlowControl type, con
665665
}
666666
if (type == FlowControlRTSCTS) {
667667
// Enable CTS & RTS
668-
MBED_ASSERT(pinmap->rx_flow_pin != (UARTName)NC);
669-
MBED_ASSERT(pinmap->tx_flow_pin != (UARTName)NC);
668+
MBED_ASSERT(pinmap->rx_flow_pin != NC);
669+
MBED_ASSERT(pinmap->tx_flow_pin != NC);
670670
obj_s->hw_flow_ctl = UART_HWCONTROL_RTS_CTS;
671671
obj_s->pin_rts = pinmap->rx_flow_pin;;
672672
obj_s->pin_cts = pinmap->tx_flow_pin;;

0 commit comments

Comments
 (0)