Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: Starkafan on March 29, 2024, 07:58:51 AM

Title: Interrupt EINT31(PI19)
Post by: Starkafan on March 29, 2024, 07:58:51 AM
Hello! Please help me configure the interrupt from EINT31(PI19).
CPU: A20
Board: LIME2
arm-linux-gnueabihf-gcc
Title: Re: Interrupt EINT31(PI19)
Post by: LubOlimex on March 29, 2024, 10:18:50 AM
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.
Title: Re: Interrupt EINT31(PI19)
Post by: Starkafan on April 03, 2024, 08:04:43 AM
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?
Title: Re: Interrupt EINT31(PI19)
Post by: LubOlimex on April 03, 2024, 09:05:29 AM
It 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.
Title: Re: Interrupt EINT31(PI19)
Post by: horroraround on April 25, 2024, 07:12:04 AM
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:
slice master (https://slice-master.io)

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.
Title: Re: Interrupt EINT31(PI19)
Post by: Starkafan on April 25, 2024, 10:40:19 AM
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