mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-25 01:37:22 +00:00
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:
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user