Interrupt EINT31(PI19)

Started by Starkafan, March 29, 2024, 07:58:51 AM

Previous topic - Next topic

Starkafan

Hello! Please help me configure the interrupt from EINT31(PI19).
CPU: A20
Board: LIME2
arm-linux-gnueabihf-gcc

LubOlimex

What image do you use? For older images you need to edit the fex/bin and define it is for that function (and remove the pin from other usages). It is similar for newer Olimage images but instead of fex/bin you need to change the DTS.
Technical support and documentation manager at Olimex

Starkafan

Quote from: LubOlimex on March 29, 2024, 10:18:50 AMWhat image do you use? For older images you need to edit the fex/bin and define it is for that function (and remove the pin from other usages). It is similar for newer Olimage images but instead of fex/bin you need to change the DTS.

Thank You! I'm use DTS (sun7i-a20-olinuxino-lime2.dts).
1. What to write in dts?
2. How to enable an interrupt in a C program?

LubOlimex

Technical support and documentation manager at Olimex

horroraround

Quote from: LubOlimex on April 03, 2024, 09:05:29 AMIt is similar to this:

https://www.olimex.com/forum/index.php?topic=4400.0

EINT are already supported in older sunxi images, and can be used as described in here:

https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-7/USAGE-AND-COMMON-PRACTICEs-A20-Olimex_kernel_3.4.103%2B_Jessie_rel_3.txt

Older sunxi images can be found at our FTP.
Thanks for your solution admin LubOlimex. I'm also looking to configure the interrupt from EINT31.

Starkafan

Quote from: LubOlimex on April 03, 2024, 09:05:29 AMIt is similar to this:

https://www.olimex.com/forum/index.php?topic=4400.0

EINT are already supported in older sunxi images, and can be used as described in here:

https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-7/USAGE-AND-COMMON-PRACTICEs-A20-Olimex_kernel_3.4.103%2B_Jessie_rel_3.txt

Older sunxi images can be found at our FTP.

Thank You. I'm sorry to be late with the reply.
Used a hardware timer instead