<?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>MMC read block uses (HIGH(varh)); HIGH not CCS C recognised</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/29090/mmc-read-block-uses-high-varh-high-not-ccs-c-recognised</link><description> 
Hello Ed Waugh, 

 
Thanks a lot for your code re: reading/writing SD/MMC cards. 

 
In the read/write block functions you use 

 
SPI_WRITE(HIGH)varh)); 

 
where is HIGH and LOW defined? presumably it shifts the bits into
an 8 bit integer for the</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: MMC read block uses (HIGH(varh)); HIGH not CCS C recognised</title><link>https://community.arm.com/thread/67417?ContentTypeID=1</link><pubDate>Fri, 20 Apr 2012 14:31:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:55e16593-871c-4a28-9c77-594aadcad020</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Macros to play with low and high byte are normally used as
HIGH(var) - not (HIGH)var.&lt;/p&gt;

&lt;p&gt;
Anyway - if you know your shift instructions, and how to mask
bits, it&amp;#39;s trivial to implement a macro HIGH() to pick up high byte
of a 16-bit number and LOW() to pick up low byte.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>