<?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>declaration for sending to the serial port</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/23647/declaration-for-sending-to-the-serial-port</link><description> 
Why when i use serial port i need to declare this 2
declaration 

 
 #ifdef MONITOR51 // Debugging with Monitor-51 needs
char code reserve [3] _at_ 0x23; // space for serial interrupt if
 #endif 
 // Stop Exection with Serial Intr.
 #ifndef MONITOR51</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: declaration for sending to the serial port</title><link>https://community.arm.com/thread/49737?ContentTypeID=1</link><pubDate>Thu, 17 Apr 2008 15:14:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:57063da2-35ed-43d2-b862-8df54a3b26c9</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;Why when i use serial port i need to declare this 2
declaration&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
You don&amp;#39;t. You only need them if you want to use the serial port
&lt;b&gt;and&lt;/b&gt; still be able to optionally use the debugger monitor
kernel (MON51).&lt;/p&gt;

&lt;p&gt;
The debugger needs the serial port for itself, and it would wreak
havoc on your debug session if you re-configured that port in the
middle of a debug session. But you must configure the port yourself
if you&amp;#39;re not using the debug monitor. So the code has to behave
differently, depending if the debug monitor is being used or not.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: declaration for sending to the serial port</title><link>https://community.arm.com/thread/100530?ContentTypeID=1</link><pubDate>Thu, 17 Apr 2008 14:07:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4c2d371b-9ae1-4191-8d11-2acb2e0699d5</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
#ifndef MONITOR51&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: declaration for sending to the serial port</title><link>https://community.arm.com/thread/76200?ContentTypeID=1</link><pubDate>Thu, 17 Apr 2008 14:05:12 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2897fbf6-4bcc-4f24-bf7b-0c0248b416b7</guid><dc:creator>mayer yeru</dc:creator><description>&lt;p&gt;&lt;p&gt;
Erik&lt;/p&gt;

&lt;p&gt;
explain what you meant&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;conditional compile monitor or not&lt;/i&gt; ??&lt;br /&gt;
i didn&amp;#39;t understand&lt;/p&gt;

&lt;p&gt;
thanks&lt;br /&gt;
mayer&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: declaration for sending to the serial port</title><link>https://community.arm.com/thread/51697?ContentTypeID=1</link><pubDate>Thu, 17 Apr 2008 13:38:59 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2118c59c-650a-4aa7-a719-e2b688234036</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thus, there is the conditional compile monitor or not&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>