<?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>S12 / MagniV Microcontrollers中的主题 Returning values from a function within XGATE</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Returning-values-from-a-function-within-XGATE/m-p/205897#M8358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to run CAN through XGATE on my MC9S12XDP512. The program is failing to compile and giving me this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C1849: Result returned in void-result-function&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The function in question is not a void-result-function, and is supposed to return a Boolean value true/false. I thought maybe the compiler was having trouble with Bool, so I changed the function to return an int but am still having the same problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had CAN working fine when using it on the main core, and havent changed any of the variables in the function. Is there certain limitations on the Xgate compiler that are preventing this function working?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Nov 2008 20:12:08 GMT</pubDate>
    <dc:creator>brian_somers</dc:creator>
    <dc:date>2008-11-27T20:12:08Z</dc:date>
    <item>
      <title>Returning values from a function within XGATE</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Returning-values-from-a-function-within-XGATE/m-p/205897#M8358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to run CAN through XGATE on my MC9S12XDP512. The program is failing to compile and giving me this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C1849: Result returned in void-result-function&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The function in question is not a void-result-function, and is supposed to return a Boolean value true/false. I thought maybe the compiler was having trouble with Bool, so I changed the function to return an int but am still having the same problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had CAN working fine when using it on the main core, and havent changed any of the variables in the function. Is there certain limitations on the Xgate compiler that are preventing this function working?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 20:12:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Returning-values-from-a-function-within-XGATE/m-p/205897#M8358</guid>
      <dc:creator>brian_somers</dc:creator>
      <dc:date>2008-11-27T20:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Returning values from a function within XGATE</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Returning-values-from-a-function-within-XGATE/m-p/205898#M8359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Did you check preprocessor listing for that function?&lt;/DIV&gt;&lt;DIV&gt;There might be some macro substitution in there, and the function definition might not look as you expect.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2008 21:03:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Returning-values-from-a-function-within-XGATE/m-p/205898#M8359</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2008-11-27T21:03:13Z</dc:date>
    </item>
  </channel>
</rss>

