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.

Fast interrupt handling in AllWinner H3 using Linux Kernel Module

Featured Replies

I'm writing a wiegand protocol handler in a Linux Kernel Module for the NanoPi NEO (AllWinner H3).  I have the code working, meaning the interrupt handlers for the D0 and D1 pins do in fact get called when I swipe a prox card.  However, I'm missing usually about half or more of the 26 bits.  The wiegand protocol is 26 pulses, each pulse 50uS wide, and separated by 2000us, so yeah it has to be fast.  I've set the debounce value to zero using gpio_set_debounce(), so it's running as quickly as I can make it without patching Linux source.

 

After doing some reading, I think I need to modify the device tree to make the default polling speed for GPIOA pins faster.  Or maybe I need to make the debounce values shorter, not sure which.  But this is the first time I will have messed with the device tree,  and I could use some pointers on the H3 device tree.  Thanks!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.