diff --git a/Libraries/zephyr/MAX/Include/wrap_max32_uart.h b/Libraries/zephyr/MAX/Include/wrap_max32_uart.h index 9479e29dc57..dd6907566b3 100644 --- a/Libraries/zephyr/MAX/Include/wrap_max32_uart.h +++ b/Libraries/zephyr/MAX/Include/wrap_max32_uart.h @@ -213,6 +213,15 @@ static inline void Wrap_MXC_UART_DisableRxDMA(mxc_uart_regs_t *uart) #endif // defined(CONFIG_SOC_MAX32690) || (CONFIG_SOC_MAX32655) +static inline unsigned int Wrap_MXC_UART_GetRegINTEN(mxc_uart_regs_t *uart) +{ +#if defined(CONFIG_SOC_MAX32662) + return uart->inten; +#else + return uart->int_en; +#endif +} + #ifdef __cplusplus } #endif