<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: GPIO Interrupt Newbie Question in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913692#M3334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No no, the passed variable isn't a IRQ number. It's the name of a callback function. And EnableIRQ() is looking for an IRQ number. So that does not answer the question: H&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ow does one register an ISR handler that is being passed as a variable?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jul 2019 13:43:10 GMT</pubDate>
    <dc:creator>mspenard603</dc:creator>
    <dc:date>2019-07-01T13:43:10Z</dc:date>
    <item>
      <title>GPIO Interrupt Newbie Question</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913684#M3326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gents,&lt;/P&gt;&lt;P&gt;&amp;nbsp;New to interrupts on the iMXRT. How does one register a GPIO interrupt handler (say as you use to do with registerHandlerGPIO(x,y, my_handler) )?&amp;nbsp;&lt;BR /&gt;There are the double-weak functions...&amp;nbsp; So is the proper way to register a handler now by doing: ?&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;EM&gt;&amp;nbsp;#define my_handler GPIO5_Combined_0_15_IRQHandler&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But, how do I register an interrupt handler that is variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I assume that even though I EnableIRQ( GPIO5_Combined_0_15_IRQn) it doesn't trigger on an edge of any of those 0-15 pins, but only those specified by GPIO_Pinit(). Is this correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2019 18:10:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913684#M3326</guid>
      <dc:creator>mspenard603</dc:creator>
      <dc:date>2019-06-12T18:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Interrupt Newbie Question</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913685#M3327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Within the SDK for the RT1060-EVK there's an example named igpio_input_ interrupt. I highly recommend you to take a look at this code and use it as a base for your project.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2019 21:59:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913685#M3327</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2019-06-14T21:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Interrupt Newbie Question</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913686#M3328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I've been looking at that example project. Which is why I have the questions above. The example nor the SDK do little to explain how you register an interrupt handler being passed as a variable. So could you be so kind as to explain?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2019 00:02:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913686#M3328</guid>
      <dc:creator>mspenard603</dc:creator>
      <dc:date>2019-06-15T00:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Interrupt Newbie Question</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913687#M3329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first thing you do in the example after the hardware initialization is enabling the interrupt that corresponds to the SW8 of the EVK:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;EnableIRQ&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;EXAMPLE_SW_IRQ&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;After, you initialize and configure the pin that will trigger the interrupt:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;GPIO_PinInit&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;EXAMPLE_SW_GPIO&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; EXAMPLE_SW_GPIO_PIN&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;sw_config&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The data for the configuration of the pin is inside the structure sw_config. Here you define that the pin will be an input and the interrupt will be generated when a rising edge occurs.&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;    gpio_pin_config_t sw_config &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        kGPIO_DigitalInput&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
        kGPIO_IntRisingEdge&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After, you enable the interrupt of the pin:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;GPIO_PortEnableInterrupts&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;EXAMPLE_SW_GPIO&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1U&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; EXAMPLE_SW_GPIO_PIN&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The handler is declared with the help of the definitions at the beginning of the file gpio_input_interrupt.c: &lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#define EXAMPLE_SW_GPIO BOARD_USER_BUTTON_GPIO&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define EXAMPLE_SW_GPIO_PIN BOARD_USER_BUTTON_GPIO_PIN&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define EXAMPLE_SW_IRQ BOARD_USER_BUTTON_IRQ&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define EXAMPLE_GPIO_IRQHandler BOARD_USER_BUTTON_IRQ_HANDLER&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define EXAMPLE_SW_NAME BOARD_USER_BUTTON_NAME&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;With the 4 define, you are setting the handler's name of the interrupt thanks to the macro BOARD_USER_BUTTON_IRQ_HANDLER&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Victor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2019 20:58:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913687#M3329</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2019-06-19T20:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Interrupt Newbie Question</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913688#M3330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I understood all that. But that is not the question I had. Which is:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;[...]&amp;nbsp;the proper way to register a handler now [...]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#define my_handler GPIO5_Combined_0_15_IRQHandler&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;But, ****&lt;STRONG&gt;how do I register an interrupt handler that is variable?******&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, I have this function which passes a variable "plflsr" that contains the ISR handler function to register:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;void nm_bsp_register_isr(tpfNmBspIsr pfIsr) {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// What is needed here??&amp;nbsp; &amp;nbsp;something like LPC had with r&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;egisterHandlerGPIO(x,y, &lt;SPAN style="color: #3d3d3d;"&gt;plflsr&lt;/SPAN&gt;) .....????&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does one register an ISR handler that is being passed as a variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2019 11:51:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913688#M3330</guid>
      <dc:creator>mspenard603</dc:creator>
      <dc:date>2019-06-20T11:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Interrupt Newbie Question</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913689#M3331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please clarify where did you see the function registerHandlerGPIO in the LPC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Victor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2019 23:43:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913689#M3331</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2019-06-25T23:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Interrupt Newbie Question</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913690#M3332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My mistake, that call must be something besides LPC or a 3rd party call. But I still have the question,&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;How does one register an ISR handler that is being passed as a variable?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2019 12:23:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913690#M3332</guid>
      <dc:creator>mspenard603</dc:creator>
      <dc:date>2019-06-26T12:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Interrupt Newbie Question</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913691#M3333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello Mike,&lt;/P&gt;&lt;BR /&gt;Unfortunately, I'm not aware of the implementation you are referring to. But, if I understood correctly what you are trying to do, your function will receive only the interrupt handler, so inside you need to call the following function to activate the interrupt: &lt;STRONG&gt;EnableIRQ(the_variable_you_passed_through_the_function).&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Victor&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 16:04:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913691#M3333</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2019-06-27T16:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Interrupt Newbie Question</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913692#M3334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No no, the passed variable isn't a IRQ number. It's the name of a callback function. And EnableIRQ() is looking for an IRQ number. So that does not answer the question: H&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ow does one register an ISR handler that is being passed as a variable?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2019 13:43:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913692#M3334</guid>
      <dc:creator>mspenard603</dc:creator>
      <dc:date>2019-07-01T13:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Interrupt Newbie Question</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913693#M3335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike, &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Unfortunately, as mentioned before, I'm not aware of any implementation like this for the GPIO driver on the i.MXRT. However, the example lpuart_interrupt_transfer provided within the SDK uses this approach, you can use it as a base to make your implementation on the GPIO driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your question is related to C programming instead of the functionality of the i.MXRT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Victor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 15:56:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913693#M3335</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2019-07-09T15:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Interrupt Newbie Question</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913694#M3336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very late reply, but since this appears unanswered, and I stumbled on it, here's my 2 cents...&lt;/P&gt;&lt;P&gt;The applications come with the default vector table pre-established with "weak" handlers.&lt;/P&gt;&lt;P&gt;Refer to the file&amp;nbsp;startup_MIMXRT1062.S in the case of the '1062.&lt;/P&gt;&lt;P&gt;That means there is a default handler in place without doing anything.&lt;/P&gt;&lt;P&gt;That handler will typically just put the board in a endless loop.&lt;/P&gt;&lt;P&gt;To override that handler you simply write another function with the same name (for example&amp;nbsp;&lt;STRONG&gt;GPIO5_Combined_0_15_IRQHandler()&lt;/STRONG&gt;) that that will replace the "weak" handler.&lt;/P&gt;&lt;P&gt;The linker will automatically use it instead of the default "weak" handler, so it is inserted directly&lt;/P&gt;&lt;P&gt;into the vector table.&lt;/P&gt;&lt;P&gt;If you're still reading this, I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2020 13:52:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/913694#M3336</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2020-06-16T13:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO Interrupt Newbie Question</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/1638319#M24751</link>
      <description>&lt;P&gt;I have the same problem.&lt;/P&gt;&lt;P&gt;When you configure anything to use an interrupt with the tool in mcuxpresso, the tool will create and configure almost everithing but the irq_handler.&lt;/P&gt;&lt;P&gt;So you can create a new project. activate an uart, or a pin or a timer and activat the irq on that peripheral.&lt;/P&gt;&lt;P&gt;Generate the code.&lt;/P&gt;&lt;P&gt;Compile it.&lt;/P&gt;&lt;P&gt;And try to execute. You will get a runtime error. The callback that is called inside the irqhandler IS NOT CREATED.&lt;/P&gt;&lt;P&gt;In the next example&amp;nbsp; s_flexcommIrqHandler is empty.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;void FLEXCOMM1_DriverIRQHandler(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;uint32_t instance;&lt;/P&gt;&lt;P&gt;/* Look up instance number */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; instance = FLEXCOMM_GetInstance(FLEXCOMM1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; assert(s_flexcommIrqHandler[instance] != NULL);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; s_flexcommIrqHandler[instance]((uint32_t *)s_flexcommBaseAddrs[instance], s_flexcommHandle[instance]);&lt;BR /&gt;SDK_ISR_EXIT_BARRIER;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the question is: How to register my irqhandler to get s_flexcommIrqHandler filled wiht my irqhandler?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2023 17:16:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/GPIO-Interrupt-Newbie-Question/m-p/1638319#M24751</guid>
      <dc:creator>PedroBecerra</dc:creator>
      <dc:date>2023-04-22T17:16:50Z</dc:date>
    </item>
  </channel>
</rss>

