This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 39e9ebe98793c9d8e4cf07716ff3c2abb61599d1 Author: Ricard Rosson <[email protected]> AuthorDate: Fri Nov 27 03:32:47 2026 +0000 arch/xtensa/esp32s3: Fix nxstyle errors in esp32s3_lowputc.c. Add the blank line after the declarations in four functions ("Missing blank line after declarations"). No change of the code. Assisted-by: Claude Code:claude-fable-5-2 Signed-off-by: Ricard Rosson <[email protected]> --- arch/xtensa/src/esp32s3/esp32s3_lowputc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/xtensa/src/esp32s3/esp32s3_lowputc.c b/arch/xtensa/src/esp32s3/esp32s3_lowputc.c index 615d93ba1cd..ad90f963c94 100644 --- a/arch/xtensa/src/esp32s3/esp32s3_lowputc.c +++ b/arch/xtensa/src/esp32s3/esp32s3_lowputc.c @@ -283,6 +283,7 @@ void esp32s3_lowputc_set_iflow(const struct esp32s3_uart_s *priv, uint8_t threshold, bool enable) { uint32_t mask; + if (enable) { /* Enable RX flow control */ @@ -345,6 +346,7 @@ void esp32s3_lowputc_set_oflow(const struct esp32s3_uart_s *priv, void esp32s3_lowputc_reset_cores(const struct esp32s3_uart_s *priv) { uint32_t set_bit = 1 << UART_RST_CORE_S; + modifyreg32(UART_CLK_CONF_REG(priv->id), UART_RST_CORE_M, set_bit); modifyreg32(UART_CLK_CONF_REG(priv->id), UART_RST_CORE_M, 0); } @@ -444,6 +446,7 @@ void esp32s3_lowputc_set_sclk(const struct esp32s3_uart_s *priv, enum uart_sclk source) { uint32_t clk = (uint32_t)source << UART_SCLK_SEL_S; + modifyreg32(UART_CLK_CONF_REG(priv->id), UART_SCLK_SEL_M, clk); } @@ -729,6 +732,7 @@ void esp32s3_lowputc_enable_sysclk(const struct esp32s3_uart_s *priv) bool esp32s3_lowputc_is_tx_fifo_full(const struct esp32s3_uart_s *priv) { uint32_t val; + val = REG_MASK(getreg32(UART_STATUS_REG(priv->id)), UART_TXFIFO_CNT); return val >= (UART_TX_FIFO_SIZE - 1); }
