// experi5a.c

#include <conio.h>
#include <stdio.h>
#include <bios.h>

// include header with constants
#include "const5a.h"

// include header with external declarations
#include "extern5a.h"

void main(void)
{
  int x,y,r,c;

  get_port(); // get the port number and establish register locations

  // make A an output and B and C inputs
  set_up_ppi(Aout_CUin_Bin_CLin); // uses the new enumeration

  while(!kbhit()) // stay in loop until key is hit
  { 
    motor(1000000L, 1000000L); // motor on, off times
  } // end while(!kbhit())

  portaoff();

} // end experi5a.c

