cpu/saml21: uart: disable fractional baud rate
SERCOM5 on SAM L21 does not support fractional baud rate mode. Instead of special-casing it, just use arithmetic baud rate mode in general on this CPU, as I'm not sure what the advantages of fractional baud rate mode are. fixes #16692
This commit is contained in:
parent
6b5a1818f1
commit
ddf96f7000
@ -38,8 +38,13 @@
|
|||||||
|
|
||||||
/* default to fractional baud rate calculation */
|
/* default to fractional baud rate calculation */
|
||||||
#if !defined(CONFIG_SAM0_UART_BAUD_FRAC) && defined(SERCOM_USART_BAUD_FRAC_BAUD)
|
#if !defined(CONFIG_SAM0_UART_BAUD_FRAC) && defined(SERCOM_USART_BAUD_FRAC_BAUD)
|
||||||
|
/* SAML21 has no fractional baud rate on SERCOM5 */
|
||||||
|
#if defined(CPU_SAML21)
|
||||||
|
#define CONFIG_SAM0_UART_BAUD_FRAC 0
|
||||||
|
#else
|
||||||
#define CONFIG_SAM0_UART_BAUD_FRAC 1
|
#define CONFIG_SAM0_UART_BAUD_FRAC 1
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* SAMD20 defines no generic macro */
|
/* SAMD20 defines no generic macro */
|
||||||
#ifdef SERCOM_USART_CTRLA_TXPO_PAD0
|
#ifdef SERCOM_USART_CTRLA_TXPO_PAD0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user