I want to use the processor expert BitIoLddin order to enable and disable output and input pins.
I read this tutorial: Tutorial: Bits and Pins with Kinetis and the FRDM-KL25Z Board | MCU on Eclipse
I am currently able to turn the red led on and off using the BitIO component (which have the BitIOLdd).
My code is doing the following:
(1) Turn on Red led. (Bit1_SetVal();)
(2) Turn off Red Led. (Bit1_ClrVal();)
The problem is that after (2) runs and turn off the led it turns on again in the next line of code...