mirror of
https://github.com/apache/nuttx.git
synced 2026-09-11 21:20:10 +00:00
EFM32: In order to use LEUART, LE clocking must be enabled
This commit is contained in:
parent
5120d745fd
commit
a418aefe13
1 changed files with 6 additions and 0 deletions
|
|
@ -323,6 +323,12 @@ void efm32_lowsetup(void)
|
|||
#endif /* HAVE_UART_DEVICE */
|
||||
|
||||
#ifdef HAVE_LEUART_DEVICE
|
||||
/* Enable the LE interface clock must be enabled in CMU_HFCORECLKEN0 */
|
||||
|
||||
regval = getreg32(EFM32_CMU_HFCORECLKEN0);
|
||||
regval |= CMU_HFCORECLKEN0_LE;
|
||||
putreg32(regval, EFM32_CMU_HFCORECLKEN0);
|
||||
|
||||
/* Enable clocking to configured LEUART interfaces */
|
||||
|
||||
regval = getreg32(EFM32_CMU_LFBCLKEN0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue