Go to nxp.com
Where is this place located?
CodeWarrior Development Tools
to create and rate content, and to follow, bookmark, and share content with other members.
assigning a variable to port
Discussion created by
on Jan 30, 2007
on Jan 31, 2007 by CrasyCat
Show 0 Likes
how do you assign a switch to port, because I wrote the following code line
bit switch = P1^3 which is supposed to assign a variable switch to bit 3 of port1 but it gives me an error message on this line when I try to compile
This content has been marked as final.
Show 1 comment
(Required, will not be published)
Jan 31, 2007 11:45 AM
- Which CPU are you targeting (HC08, HC12, Coldfire, ..)
- Which version of CodeWarrior are you using?
To retrieve that info:
- Start CodeWarrior
- Select Help -> About Freescale CodeWarrior
- Click on "Install Products"
- CodeWarrior version used is displayed on top in the Installed Products dialog.
In any case ANSI standard does not define P1^3 as valid notation to access bit number 3 in a variable / register).
Please refer to your favorite ANSI C programming manual and look at how bitfields are managed.
Show 0 Likes
Retrieving data ...
Freedom k64F i want to switch to openSDA bootloader mode from application mode
i.MX Development Miscellanea(i.MX 开发杂记)
i.MX6 Recovery Mode with HAB and MFG tool
How to show my customize bootlogo via HDMI
iMX7D Plugin mode HAB (High Assurance Boot)