<?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>Kinetis Microcontrollers中的主题 Re: for Kinetis  why is __enable_irq and __disable_irq commented out when using CMSIS</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/for-Kinetis-why-is-enable-irq-and-disable-irq-commented-out-when/m-p/608348#M35923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check &lt;A href="https://mcuxpresso.nxp.com/en/welcome"&gt;here&lt;/A&gt; to download the latest KSDK software package for KL15 product.&lt;/P&gt;&lt;P&gt;There provide CMSIS driver and example demo located at..\SDK_2.1_MKL15Z128xxx4\boards\frdmkl25z\cmsis_driver_examples folder.&lt;/P&gt;&lt;P&gt;The CMSIS example driver calls the&amp;nbsp;&amp;nbsp; void EnableIRQ(IRQn_Type interrupt) function to enable IRQ and call void DisableIRQ(IRQn_Type interrupt) function to disable the IRQ.&lt;/P&gt;&lt;P&gt;The related software function could be found at &amp;lt;fsl_common.h&amp;gt; file.&lt;/P&gt;&lt;P&gt;In fact, both functions are calling below functions at &amp;lt;core_cm0plus.h&amp;gt; file:&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt;&amp;nbsp; \brief&amp;nbsp;&amp;nbsp; Enable External Interrupt&lt;BR /&gt;&amp;nbsp; \details Enables a device-specific interrupt in the NVIC interrupt controller.&lt;BR /&gt;&amp;nbsp; \param [in]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IRQn&amp;nbsp; External interrupt number. Value cannot be negative.&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; NVIC-&amp;gt;ISER[0U] = (uint32_t)(1UL &amp;lt;&amp;lt; (((uint32_t)(int32_t)IRQn) &amp;amp; 0x1FUL));&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt;&amp;nbsp; \brief&amp;nbsp;&amp;nbsp; Disable External Interrupt&lt;BR /&gt;&amp;nbsp; \details Disables a device-specific interrupt in the NVIC interrupt controller.&lt;BR /&gt;&amp;nbsp; \param [in]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IRQn&amp;nbsp; External interrupt number. Value cannot be negative.&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; NVIC-&amp;gt;ICER[0U] = (uint32_t)(1UL &amp;lt;&amp;lt; (((uint32_t)(int32_t)IRQn) &amp;amp; 0x1FUL));&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Mar 2017 04:13:20 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2017-03-02T04:13:20Z</dc:date>
    <item>
      <title>for Kinetis  why is __enable_irq and __disable_irq commented out when using CMSIS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/for-Kinetis-why-is-enable-irq-and-disable-irq-commented-out-when/m-p/608347#M35922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Customer writing code using CMSIS library finds __enable_irq and __disable_irq is commented out.&amp;nbsp; If that is the case, what is the preferred method for enabling and disabling global interrupts in MKL15 family?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 02:34:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/for-Kinetis-why-is-enable-irq-and-disable-irq-commented-out-when/m-p/608347#M35922</guid>
      <dc:creator>steve_fae</dc:creator>
      <dc:date>2017-03-01T02:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: for Kinetis  why is __enable_irq and __disable_irq commented out when using CMSIS</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/for-Kinetis-why-is-enable-irq-and-disable-irq-commented-out-when/m-p/608348#M35923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check &lt;A href="https://mcuxpresso.nxp.com/en/welcome"&gt;here&lt;/A&gt; to download the latest KSDK software package for KL15 product.&lt;/P&gt;&lt;P&gt;There provide CMSIS driver and example demo located at..\SDK_2.1_MKL15Z128xxx4\boards\frdmkl25z\cmsis_driver_examples folder.&lt;/P&gt;&lt;P&gt;The CMSIS example driver calls the&amp;nbsp;&amp;nbsp; void EnableIRQ(IRQn_Type interrupt) function to enable IRQ and call void DisableIRQ(IRQn_Type interrupt) function to disable the IRQ.&lt;/P&gt;&lt;P&gt;The related software function could be found at &amp;lt;fsl_common.h&amp;gt; file.&lt;/P&gt;&lt;P&gt;In fact, both functions are calling below functions at &amp;lt;core_cm0plus.h&amp;gt; file:&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt;&amp;nbsp; \brief&amp;nbsp;&amp;nbsp; Enable External Interrupt&lt;BR /&gt;&amp;nbsp; \details Enables a device-specific interrupt in the NVIC interrupt controller.&lt;BR /&gt;&amp;nbsp; \param [in]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IRQn&amp;nbsp; External interrupt number. Value cannot be negative.&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; NVIC-&amp;gt;ISER[0U] = (uint32_t)(1UL &amp;lt;&amp;lt; (((uint32_t)(int32_t)IRQn) &amp;amp; 0x1FUL));&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt;&amp;nbsp; \brief&amp;nbsp;&amp;nbsp; Disable External Interrupt&lt;BR /&gt;&amp;nbsp; \details Disables a device-specific interrupt in the NVIC interrupt controller.&lt;BR /&gt;&amp;nbsp; \param [in]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IRQn&amp;nbsp; External interrupt number. Value cannot be negative.&lt;BR /&gt;&amp;nbsp;*/&lt;BR /&gt;__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; NVIC-&amp;gt;ICER[0U] = (uint32_t)(1UL &amp;lt;&amp;lt; (((uint32_t)(int32_t)IRQn) &amp;amp; 0x1FUL));&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 04:13:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/for-Kinetis-why-is-enable-irq-and-disable-irq-commented-out-when/m-p/608348#M35923</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-03-02T04:13:20Z</dc:date>
    </item>
  </channel>
</rss>

