Navio2: modify for SPI-connected GPS and fix bug in GPIO driver

This commit is contained in:
Hidenori
2016-10-06 09:00:09 +02:00
committed by Lorenz Meier
parent b9728ecf39
commit 56ef984529
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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;
}