Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

UART1 Interrupts in OrangePi Zero

Featured Replies

Hi everyone, 

 

I am using an OrangePi Zero with AllWinner H2+ and I need to catch UART1_TX and UART1_RX interrupts. I have been reading the Allwinner H2+ datasheet (http://wiki.friendlyarm.com/wiki/images/0/08/Allwinner_H2%2B_Datasheet_V1.2.pdf) and I have seen that UART1 interrupts are mented on PG_EINT (section 4.22.2.46) and  UART Register Description (section 8.3.5)

 

- I have no clear which registers I should configure to detect the UART1 interrupts, and how to do it. 

 

For example, for detecting Received data available, I think I should:

 

- Enable the ERBFI bit in UART_IER register 

 - Check IID field in UART_IIR to detect Received Data Available interrupt.

- Get the data received on UART_RBR

 

That's correct? How could I achieve this? I am very new on linux.

 

 

Kind Regards and thanks in advance,

 

 Rafa
 

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.