Break detection with k32l2b31 and lpuart1 attached to dma

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Break detection with k32l2b31 and lpuart1 attached to dma

254 Views
plefebvre1
Contributor I

problem with break detection on lpuart1

my code configuration :
LPUART_ClearStatusFlags(EXAMPLE_LPUART1, kLPUART_LinBreakFlag);
LPUART_EnableInterrupts(EXAMPLE_LPUART1, kLPUART_LinBreakInterruptEnable);
LPUART1->STATUS |+0X2000000;
EnableIRQ(EXAMPLE_LPUART1_IRQn);

 

my IRQ

void EXAMPLE_LPUART1_IRQHandler(void)
{
uint32_t status            = LPUART_GetStatusFlags(EXAMPLE_LPUART1);
uint32_t enabledInterrupts = LPUART_GetEnabledInterrupts(EXAMPLE_LPUART1);
 
 
/* If break situation detected. */
if ((0U != ((uint32_t)kLPUART_LinBreakFlag & status)) &&
(0U != ((uint32_t)kLPUART_LinBreakInterruptEnable & enabledInterrupts)))
{
(void)LPUART_ClearStatusFlags(EXAMPLE_LPUART1, kLPUART_LinBreakFlag);
 
isBreakLineDetected1 = true;
        C105_RTS_SET;
}
....
 
Many thanks for support
 
best regards

 

 

0 Kudos
Reply
0 Replies