CS/ECE 5785/6785: Lab 1 |
MCF_GPIO_PTCPAR = MCF_GPIO_PTCPAR_DTIN0_GPIO; MCF_GPIO_DDRTC = MCF_GPIO_DDRTC_DDRTC0; MCF_GPIO_PORTTC = 0x00;These lines respectively configure a pin as general-purpose I/O, enable the signal as a digital output, and turn the signal off. This pin happens to be connected to LED0 on your board.
MCF_GPIO_PTCPAR = 0 | MCF_GPIO_PTCPAR_DTIN3_GPIO | MCF_GPIO_PTCPAR_DTIN2_GPIO | MCF_GPIO_PTCPAR_DTIN1_GPIO | MCF_GPIO_PTCPAR_DTIN0_GPIO;