Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

C# Language "shortcuts", "BIT" variable defenition

$
0
0

Hi everyone!

My question may look to obvious to some of you and that is better for me ))))

At this page(this is the MSP430 LaunchPad Drive LED tutorial):http://processors.wiki.ti.com/index.php/MSP430_LaunchPad_Drive_LED

I found some things that were new to me (as a newbie in all this LaunchPad stuff), my question refers to this lines of code:

  [CODE]

#define LED_0 BIT0 
#define LED_1 BIT6
[/CODE]

 As I can understand from the above code,the "LED_0" is a name, and  BIT0 means 0x01 number, so wherever I'll use "LED_01" in my code the compiler will interpret this like "BIT0" which actually means 0x01. I'm little familiar with C# language, had some college courses, but in our labs we never used these shortcuts, only the direct input of Hex numbers (like 0x04 and etc)

 Now, back to "what I actually want from you":

My question is about these code "shortcuts", where can I get more info about it? Some User tutorials, where all this things combined and explained together

There is some Assembler User Guide that I found for LaunchPad but nothing for C# language.


Thanks in advance for your help.

Ivan

 

 


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>