1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

Cleanup of unused code.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@271 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
gussy 2010-03-08 10:14:38 +00:00 committed by gussy
parent 6fd5da7489
commit bcc84f00fb

View File

@ -195,14 +195,6 @@ void TIM3_IRQHandler(void)
{
int32_t i;
/* For now we skip the generic non-application stuff for speed reasons */
//for(i = 0; i < PIOS_PWM_NUM_INPUTS; i++) {
// if(TIM_GetITStatus(PIOS_PWM_TIM_PORT[i], PIOS_PWM_TIM_CCR[i]) == SET) {
// /* This identifies which interrupt we are processing */
// break;
// }
//}
/* Do this as it's more efficient */
if(TIM_GetITStatus(PIOS_PWM_TIM_PORT[4], PIOS_PWM_TIM_CCR[4]) == SET) {
i = 4;
@ -239,22 +231,6 @@ void TIM3_IRQHandler(void)
/* Simple rise or fall state machine */
if(CaptureState[i] == 0) {
/* Get the Input Capture value */
//switch(PIOS_PWM_TIM_CHANNEL[i]) {
// case TIM_Channel_1:
// RiseValue[i] = TIM_GetCapture1(PIOS_PWM_TIM_PORT[i]);
// break;
// case TIM_Channel_2:
// RiseValue[i] = TIM_GetCapture2(PIOS_PWM_TIM_PORT[i]);
// break;
// case TIM_Channel_3:
// RiseValue[i] = TIM_GetCapture3(PIOS_PWM_TIM_PORT[i]);
// break;
// case TIM_Channel_4:
// RiseValue[i] = TIM_GetCapture4(PIOS_PWM_TIM_PORT[i]);
// break;
//}
/* Switch states */
CaptureState[i] = 1;
@ -264,22 +240,6 @@ void TIM3_IRQHandler(void)
TIM_ICInit(PIOS_PWM_TIM_PORT[i], &TIM_ICInitStructure);
} else {
/* Get the Input Capture value */
//switch(PIOS_PWM_TIM_CHANNEL[i]) {
// case TIM_Channel_1:
// FallValue[i] = TIM_GetCapture1(PIOS_PWM_TIM_PORT[i]);
// break;
// case TIM_Channel_2:
// FallValue[i] = TIM_GetCapture2(PIOS_PWM_TIM_PORT[i]);
// break;
// case TIM_Channel_3:
// FallValue[i] = TIM_GetCapture3(PIOS_PWM_TIM_PORT[i]);
// break;
// case TIM_Channel_4:
// FallValue[i] = TIM_GetCapture4(PIOS_PWM_TIM_PORT[i]);
// break;
//}
/* Capture computation */
if (FallValue[i] > RiseValue[i]) {
CaptureValue[i] = (FallValue[i] - RiseValue[i]);