<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>RTX - os_evt_get trouble</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/26848/rtx---os_evt_get-trouble</link><description> 
Hi, 

 
I&amp;#39;m working with MDK_ARM V4.00 

 
I would like to use os_evt_get to identify the current event in a
task and I&amp;#39;ve obtained a strange result ! 

 
My source is : 

 
EvtFlag_T1 = os_evt_get() ; 

 
result = os_evt_wait_or (0x0040 | 0x4000, 20</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: RTX - os_evt_get trouble</title><link>https://community.arm.com/thread/78058?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2010 07:15:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a538cf78-ee80-46a2-97cd-db2395f7d3a5</guid><dc:creator>Stephen Isidore</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks you for all&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTX - os_evt_get trouble</title><link>https://community.arm.com/thread/57623?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2010 02:51:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:698fb4ca-c7cd-4eb4-8a4a-3172434b05a2</guid><dc:creator>Franc  Urbanc</dc:creator><description>&lt;p&gt;&lt;p&gt;
The &lt;i&gt;os_evt_get()&lt;/i&gt; is valid only for &lt;b&gt;OS_R_EVT&lt;/b&gt; return
value from &lt;i&gt;os_evt_wait_or()&lt;/i&gt;. On timeout, the value of
&lt;i&gt;os_evt_get()&lt;/i&gt; is undefined.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTX - os_evt_get trouble</title><link>https://community.arm.com/thread/57624?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2010 02:55:24 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9aba2a4e-cd10-4ed3-8386-521def9ce9bc</guid><dc:creator>Non Keil Related</dc:creator><description>&lt;p&gt;&lt;p&gt;
I would have expected result of os_evt_get to be valid (only) if
os_evt_wait_or returned OS_R_EVT and would have coded as that. As
indicated by the Keil example.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>