about "alias" function in c++ programming for dspi

Status
Not open for further replies.

boon1987

Newbie level 6
Joined
Sep 18, 2009
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
malaysia
Activity points
1,437
hello guys,

I am a beginner to the c programming in micro controller, so if the question sound stupid please forgive me.

I want to assign the special name to each bit for SFR. For example, PORTBbits.RB0 represent the bit 0 in port B register. I want to give name to PORTbits.RB0 like Switch1. It will ease my programming process. Can i do this in the programming?

One thing i have in my mind is using the Alias attribute in the c programming provided by microchip but it is not working. Can anyone give me some example on it? i google search already but no related information. Please offer some help, thanks.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…