Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
chip/efm32_leserial.c: In function 'efm32_restoreuartint':
Error: chip/efm32_leserial.c:329:37: error: 'len' undeclared (first use in this function); did you mean 'ien'?
  329 |   efm32_restoreuartint_nolock(priv, len);
      |                                     ^~~
      |                                     ien

Signed-off-by: hujun5 <[email protected]>
  • Loading branch information
hujun260 committed Dec 27, 2024
1 parent e19e1a8 commit ca0f657
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/arm/src/efm32/efm32_leserial.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ static void efm32_restoreuartint(struct efm32_leuart_s *priv, uint32_t ien)
*/

flags = spin_lock_irqsave(&priv->lock);
efm32_restoreuartint_nolock(priv, len);
efm32_restoreuartint_nolock(priv, ien);
spin_unlock_irqrestore(&priv->lock, flags);
}

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/gd32f4/gd32f4xx_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ struct up_dev_s
uint8_t stop_2bits; /* True: Configure with 2 stop bits instead of 1 */
uint32_t tx_gpio; /* USART TX GPIO pin configuration */
uint32_t rx_gpio; /* USART RX GPIO pin configuration */
spinlock_t lock; /* Spinlock */

# ifdef CONFIG_SERIAL_IFLOWCONTROL
uint32_t rts_gpio; /* UART RTS GPIO pin configuration */
Expand Down Expand Up @@ -159,6 +158,7 @@ struct up_dev_s
const uint8_t stop_2bits; /* True: Configure with 2 stop bits instead of 1 */
const uint32_t tx_gpio; /* USART TX GPIO pin configuration */
const uint32_t rx_gpio; /* USART RX GPIO pin configuration */
spinlock_t lock; /* Spinlock */

# ifdef CONFIG_SERIAL_IFLOWCONTROL
const uint32_t rts_gpio; /* UART RTS GPIO pin configuration */
Expand Down

0 comments on commit ca0f657

Please sign in to comment.