Hi,
I want to add a small change in the attached code but couldn't get my head around it, i want to add an interrupt so that when GPIO0_0 is pressed it will override the playing file on GPIO0_1.
I will really appreciate any feedback or suggestion as this is only part we have to resolve before going into mass production.
Thank you
Sourabh Bansal
Adding an interrupt
-
- User
- Posts: 9
- Joined: Wed 2018-05-30 1:39
Re: Adding an interrupt
Here's the code.
- Attachments
-
- Revision00.zip
- Revision00
- (571.5 KiB) Downloaded 149 times
Re: Adding an interrupt
in gpioctrl.c change line 166 to #if 0 like below:
So that GPIO0 going high is allowed to override play started by GPIO1.
Code: Select all
/* If different file (or no file) is playing,
cancel play and start playing the new one. */
if (
#if 0 //def GPIO_RISING_EDGE
(player.currentFile == -1) /* does not override */
#else
player.currentFile != mask - 1
#endif
) {
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook
-
- User
- Posts: 9
- Joined: Wed 2018-05-30 1:39
Re: Adding an interrupt
Thanx heaps Pasi,
Yup that solved the issue.

Yup that solved the issue.

