Skip to content

Commit

Permalink
Update uart_ll.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Jul 8, 2024
1 parent cbdc764 commit 19ccdb3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion components/hal/esp32p4/include/hal/uart_ll.h
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,6 @@ FORCE_INLINE_ATTR void uart_ll_set_baudrate(uart_dev_t *hw, uint32_t baud, uint3
}
#if !BOOTLOADER_BUILD
//HP_SYS_CLKRST.peri_clk_ctrlxxx are shared registers, so this function must be used in an atomic way
int __DECLARE_RCC_ATOMIC_ENV __attribute__ ((unused)); // To avoid build errors/warnings about __DECLARE_RCC_ATOMIC_ENV
#define uart_ll_set_baudrate(...) (void)__DECLARE_RCC_ATOMIC_ENV; uart_ll_set_baudrate(__VA_ARGS__)
#endif

Expand Down

0 comments on commit 19ccdb3

Please sign in to comment.