arch/risc-v/esp32c6: fix compilation of esp32c6 serial driver

The commit fix regression introduced by c56aa7b527

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2023-09-16 10:39:45 +03:00 committed by Xiang Xiao
parent ac62a08ac9
commit 017ccca5d6

View File

@ -148,6 +148,10 @@
#define BIT(nr) (1UL << (nr))
/* Extract the field from the register and shift it to avoid wrong reading */
#define REG_MASK(_reg, _field) (((_reg) & (_field##_M)) >> (_field##_S))
/* Helper to place a value in a field */
#define VALUE_TO_FIELD(_value, _field) (((_value) << (_field##_S)) & (_field##_M))