Skip to content

Commit

Permalink
chore(Other): Add a function in wrap_uart (#1034)
Browse files Browse the repository at this point in the history
Signed-off-by: Sadik Ozer <[email protected]>
  • Loading branch information
ozersa committed Jun 12, 2024
1 parent c019fed commit 1430a0c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Libraries/zephyr/MAX/Include/wrap_max32_uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1430a0c

Please sign in to comment.