build: Fix the warnings that break the tests

unused variable 'lfn'
    'isr_handler' defined but not used
    'servo_set_angle' defined but not used
    'gpio_test_signal' defined but not used
    'change_duty' defined but not used
This commit is contained in:
Anton Maklakov
2017-06-30 15:46:31 +08:00
parent 3cd10899e6
commit 3d1d4fe150
4 changed files with 20 additions and 14 deletions

View File

@@ -42,16 +42,6 @@ static uint32_t servo_per_degree_init(uint32_t degree_of_rotation)
return cal_pulsewidth;
}
/**
* @brief directly set servo motor to a particular angle
*/
static void servo_set_angle(uint32_t angle_of_rotation)
{
uint32_t angle_t;
angle_t = servo_per_degree_init(angle_of_rotation);
mcpwm_set_duty_in_us(MCPWM_UNIT_0, MCPWM_TIMER_0, MCPWM_OPR_A, angle_t);
}
/**
* @brief Configure MCPWM module
*/