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 ...
No Picture with DSI to LVDS bridge SN65DSI83
How to get Charging Animation on Android 7 on IMX7.D
i.mx 8 mini support camera raw10 format?
Issues with SD Card & USB Interfaces on i.MX233