imxRT1170 LPUART code with interrupts.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imxRT1170 LPUART code with interrupts.

1,581件の閲覧回数
Naveed
Contributor II

Hi,

I am using imxRT1170 EVK board. I want to use LPUART1 peripheral in interrupt mode. I am using IAR tool for coding. Can you please share me the example code for using LPUART in interrupt mode.

I want to use the below API's provided:

status_t LPUART_TransferSendNonBlocking(LPUART_Type *base, lpuart_handle_t *handle, lpuart_transfer_t *xfer)

status_t LPUART_TransferReceiveNonBlocking(LPUART_Type *base,lpuart_handle_t *handle,
lpuart_transfer_t *xfer, size_t *receivedBytes)

What are the configuration I need to do to use it in interrupt mode?

Thanks in advance.

0 件の賞賛
返信
1 返信

1,549件の閲覧回数
diego_charles
NXP TechSupport
NXP TechSupport

Hi @Naveed 

I hope you are doing great, 

Please refer to the lpuart_interrupt_transfer in the RT1170 SDK, there you will find those APIs implemented and the related interrupt mode configuration.

Regarding IAR toolchain, just in case you need any info,  I know two ways to get the example :

  • Installing the RT1170 BSP/Pack,  and then import the example using the CMSIS Pack Manager 
  • Build and download the RT1170 SDK from https://mcuxpresso.nxp.com/en/welcome . Then un-zip the SDK and find the project in the SDK folder, to finally open its workspace with IAR.

All the best, 

Diego

0 件の賞賛
返信