<?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: How to initialise peripherals in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-initialise-peripherals/m-p/1781287#M11639</link>
    <description>&lt;P&gt;Okay, I think I have figured out that&amp;nbsp;&lt;SPAN&gt;ftm_state_t is returned *from*&amp;nbsp;FTM_DRV_Init.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But again, where is this documented?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 30 Dec 2023 13:36:05 GMT</pubDate>
    <dc:creator>ArkAndyFraser</dc:creator>
    <dc:date>2023-12-30T13:36:05Z</dc:date>
    <item>
      <title>How to initialise peripherals</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-initialise-peripherals/m-p/1781286#M11638</link>
      <description>&lt;P&gt;Having got frustrated with RTD, I have dropped back to S32DS 3.4 and SDK for my project.&lt;/P&gt;&lt;P&gt;One thing that I have not figured out with the SDK is how to configure the hardware drivers given the code automatically generated. Where is it documented how you initialise the drivers in your code?&lt;/P&gt;&lt;P&gt;As an example, I have assigned an FTM channel as input capture and generated the code. I now have&amp;nbsp;peripherals_flexTimer_ic_1.c and&amp;nbsp;peripherals_flexTimer_ic_1.h.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the&amp;nbsp;peripherals_flexTimer_ic_1.c file I can see:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;ftm_user_config_t flexTimer_ic_1_InitConfig = ...
ftm_input_param_t flexTimer_ic_1_InputCaptureConfig = ...
ftm_input_ch_param_t flexTimer_ic_1_InputCaptureChannelConfig[1] = ...&lt;/LI-CODE&gt;&lt;P&gt;Where is it documented how I use these configuration structures?&lt;/P&gt;&lt;P&gt;I can see in SDK/platform/drivers/src/ftm/ftm_common.c the&amp;nbsp;FTM_DRV_Init function which takes&amp;nbsp;ftm_user_config_t which is defined in the generated code but also takes&amp;nbsp;ftm_state_t which does not appear to exist in the generated code!&lt;/P&gt;&lt;P&gt;I also see&amp;nbsp;FTM_DRV_InitInputCapture in ftm_ic_driver.c which takes&amp;nbsp;ftm_input_param_t which is in the generated code.&lt;/P&gt;&lt;P&gt;So, where is it documented which of these initialisation functions need to be called?&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Sat, 30 Dec 2023 13:15:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-initialise-peripherals/m-p/1781286#M11638</guid>
      <dc:creator>ArkAndyFraser</dc:creator>
      <dc:date>2023-12-30T13:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialise peripherals</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-initialise-peripherals/m-p/1781287#M11639</link>
      <description>&lt;P&gt;Okay, I think I have figured out that&amp;nbsp;&lt;SPAN&gt;ftm_state_t is returned *from*&amp;nbsp;FTM_DRV_Init.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But again, where is this documented?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Dec 2023 13:36:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-initialise-peripherals/m-p/1781287#M11639</guid>
      <dc:creator>ArkAndyFraser</dc:creator>
      <dc:date>2023-12-30T13:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialise peripherals</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-initialise-peripherals/m-p/1781297#M11640</link>
      <description>&lt;P&gt;I guess the example code is the primary documentation for using the SDK.&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;</description>
      <pubDate>Sat, 30 Dec 2023 21:13:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-initialise-peripherals/m-p/1781297#M11640</guid>
      <dc:creator>ArkAndyFraser</dc:creator>
      <dc:date>2023-12-30T21:13:06Z</dc:date>
    </item>
  </channel>
</rss>

