older version for rasplex, hope it works.

This commit is contained in:
2016-11-04 17:32:54 +01:00
parent c2f24e5ef6
commit 6b609a3c9d
40 changed files with 196 additions and 6764 deletions
+3 -4
View File
@@ -20,10 +20,9 @@ struct rpi_gpio_map {
};
/** Peripheral base address of the BCM2835 */
#define BCM2835_PERI_BASE_PI12 0x20000000
#define BCM2835_PERI_BASE_PI3 0x3F000000
/** GPIO register start address offset from PERI_BASE */
#define GPIO_BASE_OFFSET 0x200000
#define BCM2835_PERI_BASE 0x20000000
/** GPIO register start address */
#define GPIO_BASE BCM2835_PERI_BASE + 0x200000
/** Length of register space */
#define GPIO_BLOCK_SIZE 180
/** The Pi has 32 GPIO pins */