mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 07:43:33 +08:00
Navio2: modify for SPI-connected GPS and fix bug in GPIO driver
This commit is contained in:
@@ -108,7 +108,7 @@ int Gpio::configgpio(uint32_t pinset)
|
||||
addr = (uintptr_t)_gpio_map + GPIO_GPFSEL0_OFFSET + pin / 10;
|
||||
shift = (pin % 10) * 3;
|
||||
|
||||
atomic_modify(addr, shift, GPIO_CNF_MASK, cnf);
|
||||
atomic_modify(addr, shift, GPIO_CNF_MASK >> GPIO_CNF_SHIFT, cnf);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user