Break detection with k32l2b31 and lpuart1 attached to dma

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Break detection with k32l2b31 and lpuart1 attached to dma

260 次查看
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 项奖励
回复
0 回复数