Hi,
Use Processor Expert tool from CodeWarrior installation. This tool generates IO
map header file for selected CPU. You can use generates IO_Map.h file to control
each CPU IO register. For example you can control BIT0 of the register GPIO_A_DR
(changing the output level of the pin 0)
GPIO_A_DR |= 1; //Set the high level to the output
GPIO_A_DR &= ~1; //Set the low level to the output
This example assumes that the direction of this pin is set to the output
(register GPIO_A_DDR).
The best way for you is to create your own Processor Expert project with the CPU
bean and BitIO bean. You can select required GPIO port in this bean an control
its over the API. In case of the example above, method SetVal(), ClrVal() or
PutVal() can be used.
If you will have any problems feel free to contact me directly via email.
Marek