John, in the correct execution of the interrupt, that is, when I press a
button so that the interrupt is actually executed, the answer is this
below. I'm still waiting to know if self-interrupt will run again and then
see what new response from "console.log (JSON.stringify (x))".
Response to the *correct interrupt*:
{
"pin": {
"name":"UART4_RXD",
"gpio":30,
"mux":"gpmc_wait0",
"eeprom":18,
"key":"P9_11",
"muxRegOffset":"0x070",
"options":[
"gpmc_wait0",
"mii2_crs",
"NA",
"rmii2_crs_dv",
"mmc1_sdcd",
"NA",
"NA",
"gpio0_30"
]
},
"value":0,
"output": {"handler":true}
}
What should I observe in this response when the error occurs again?
Em sexta-feira, 21 de julho de 2017 18:10:55 UTC-3, john3909 escreveu:
>
> In toggleState, use console.log(JSON.stringify(x)); to see why the
> interrupt triggered.
>
> Regards,
> John
>
>
>
>
> On Jul 21, 2017, at 1:52 PM, William B <[email protected] <javascript:>>
> wrote:
>
> Hello! I'm using an interrupt with Beaglebone Black as indicated below,
> however I'm having problem.
> PROBLEM: The interrupt that goes through the callback function
> "toggleState" is triggering itself, without any external reason or action.
>
> Has anyone seen this happen and knows how to solve it?
>
>
> EXAMPLE:
>
> myInput = 'P9_11';
>
> b.pinMode(myInput, b.INPUT);
> b.attachInterrupt(myInput, true, b.CHANGE, toggleState);
>
> function toggleState(x) { <<==== Running for no reason
> console.log('Interruption triggered');
> }
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/51f710e8-8055-4f1f-aa80-c6eb22289d13%40googlegroups.com
>
> <https://groups.google.com/d/msgid/beagleboard/51f710e8-8055-4f1f-aa80-c6eb22289d13%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/a208cb00-45ef-4c01-a5ae-f2989fcfc61b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.