#include <stdio.h> #include "Pins.h" #include <S12e128bits.h> #include <mc9s12e128.h> void InitDigitalIn(void){ // Init Bumpers as Digital inputs DDR_BUMPER &= ~(PIN_FRONT_BUMPER | PIN_BACK_BUMPER); // Init Lance Switches as Digital inputs DDR_LANCE_LIMIT &= ~(PIN_FRONT_LANCE_LIMIT | PIN_BACK_LANCE_LIMIT); //Match Status LED as output DDR_STATUS_LED |= PIN_STATUS_LED; //Set off PORT_STATUS_LED &= ~PIN_STATUS_LED; //Knight switch is on AD port printf("Init Digital In \n\r"); }