mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-22 01:50:34 +08:00
holybro_durandal-v1: Initalize PWM as input with Pull Downs
This commit is contained in:
committed by
Lorenz Meier
parent
4da1ec1146
commit
4c8dca738c
@@ -138,7 +138,7 @@ __EXPORT void board_peripheral_reset(int ms)
|
|||||||
__EXPORT void board_on_reset(int status)
|
__EXPORT void board_on_reset(int status)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < DIRECT_PWM_OUTPUT_CHANNELS; ++i) {
|
for (int i = 0; i < DIRECT_PWM_OUTPUT_CHANNELS; ++i) {
|
||||||
px4_arch_configgpio(PX4_MAKE_GPIO_INPUT(io_timer_channel_get_as_pwm_input(i)));
|
px4_arch_configgpio(PX4_MAKE_GPIO_INPUT_PULL_DOWN(io_timer_channel_get_as_pwm_input(i)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status >= 0) {
|
if (status >= 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user