<?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>MPC5xxxのトピックRe: How to use PIT_DRV_GetStatusFlags function</title>
    <link>https://community.nxp.com/t5/MPC5xxx/How-to-use-PIT-DRV-GetStatusFlags-function/m-p/1603590#M22928</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;PIT_DRV_ClearStatusFlags only returns 0 or 1, which&amp;nbsp;is the&amp;nbsp;value of PIT channel TFLG bit.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;PIT channel is specified in function's second&amp;nbsp;parameter.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Feb 2023 09:42:07 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2023-02-22T09:42:07Z</dc:date>
    <item>
      <title>How to use PIT_DRV_GetStatusFlags function</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-use-PIT-DRV-GetStatusFlags-function/m-p/1603078#M22921</link>
      <description>&lt;P&gt;hello&lt;BR /&gt;I am studying basic examples (PTI, FlexCAN) of S32 SDK supporting MPC5748G.&lt;BR /&gt;Looking at the pit_periodic_interrupt_mpc5748G example, it seems that the interrupt vector is accessed through the IRQHandler function below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void PIT_Ch0_IRQHandler(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;PIT_DRV_ClearStatusFlags(INST_PIT1, pit1_ChnConfig0.hwChannel); /* Clear channel 0 interrupt flag */&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Instead of the PIT_DRV_ClearStatusFlags function above, I want to check the interrupt operation with the if statement using the PIT_DRV_GetStatusFlags function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, the HAL driver of the nucleo board checks the interrupt with the syntax below.&lt;/P&gt;&lt;P&gt;void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)&lt;BR /&gt;{&lt;BR /&gt;if(htim-&amp;gt;Instance == TIM6)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it the correct syntax to write in the format below like the interrupt syntax above?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PIT_Type PIT1_CH0&lt;/P&gt;&lt;P&gt;void PIT_Ch0_IRQHandler(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;if(&lt;SPAN&gt;PIT_DRV_GetStatusFlags&lt;/SPAN&gt;(INST_PIT1, pit1_ChnConfig0.hwChannel) ==&amp;nbsp;pit1_ChnConfig0)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;exactly...&lt;BR /&gt;After declaring the PTI_Type structure&lt;BR /&gt;I don't know how to match the return value below using a structure.&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;retVal = (base-&amp;gt;TIMER[channel].TFLG &amp;amp; PIT_TFLG_TIF_MASK);&lt;BR /&gt;}&lt;BR /&gt;return retVal;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 17:03:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-use-PIT-DRV-GetStatusFlags-function/m-p/1603078#M22921</guid>
      <dc:creator>Sang-Hoon_Ahn</dc:creator>
      <dc:date>2023-02-21T17:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PIT_DRV_GetStatusFlags function</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-use-PIT-DRV-GetStatusFlags-function/m-p/1603590#M22928</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;PIT_DRV_ClearStatusFlags only returns 0 or 1, which&amp;nbsp;is the&amp;nbsp;value of PIT channel TFLG bit.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;PIT channel is specified in function's second&amp;nbsp;parameter.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 09:42:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-use-PIT-DRV-GetStatusFlags-function/m-p/1603590#M22928</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2023-02-22T09:42:07Z</dc:date>
    </item>
  </channel>
</rss>

