Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 14 → Rev 13

/luminary/PWM-Test/PWM-Test.c
13,7 → 13,7
*
****************************************************************************
*
* Test program for Generating PWM signals to drive a motor
* Test program for monitoring the ADC lines.
*
****************************************************************************/
 
109,18 → 109,6
 
/****************************************************************************
*
* Interrupt handler for Timer0 A
*
****************************************************************************/
 
void Timer0A_isr( void )
{
 
} // Timer0A_isr
 
/****************************************************************************
*
* Initialize the ADC to collect sample from our 4 line sensors.
*
****************************************************************************/
227,26 → 215,6
 
/****************************************************************************
*
* InitTach
*
****************************************************************************/
 
void InitTach( void )
{
SysCtlPeripheralEnable( SYSCTL_PERIPH_TIMER0 );
 
TimerConfigure( TIMER0_BASE, TIMER_CFG_16_BIT_PAIR
| TIMER_CFG_A_CAP_TIME
| TIMER_CFG_B_CAP_TIME );
 
TimerControlEvent( TIMER0_BASE, TIMER_BOTH, TIMER_EVENT_POS_EDGE );
 
TimerEnable( TIMER0_BASE, TIMER_BOTH );
 
} // InitTach
 
/****************************************************************************
*
* SwitchEvent
*
****************************************************************************/
286,7 → 254,6
 
InitADC();
InitMotors();
InitTach();
 
// Configure Timer0 to generate a 10 kHz PWM signal for driving
// the user LED.
/luminary/PWM-Test/startup-gcc.c
55,13 → 55,11
 
//*****************************************************************************
//
// External declaration for the interrupt handlers used by the application.
// External declaration for the interrupt handler used by the application.
//
//*****************************************************************************
extern void ADC_isr( void );
 
void ADC_isr( void );
void Timer0A_isr( void );
 
//*****************************************************************************
//
// Reserve space for the system stack.
121,7 → 119,7
IntDefaultHandler, // ADC Sequence 2
IntDefaultHandler, // ADC Sequence 3
IntDefaultHandler, // Watchdog timer
Timer0A_isr, // Timer 0 subtimer A
IntDefaultHandler, // Timer 0 subtimer A
IntDefaultHandler, // Timer 0 subtimer B
IntDefaultHandler, // Timer 1 subtimer A
IntDefaultHandler, // Timer 1 subtimer B