Skip to content
This repository was archived by the owner on Nov 12, 2019. It is now read-only.

Commit 950f841

Browse files
committed
Resolve #4 by making gpio mem global explicitly extern in header.
1 parent 9a6b599 commit 950f841

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/Raspberry_Pi/pi_mmio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define MMIO_ERROR_DEVMEM -1
3131
#define MMIO_ERROR_MMAP -2
3232

33-
volatile uint32_t* pi_mmio_gpio;
33+
extern volatile uint32_t* pi_mmio_gpio;
3434

3535
int pi_mmio_init(void);
3636

source/Raspberry_Pi_2/pi_2_mmio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#define MMIO_ERROR_MMAP -2
3232
#define MMIO_ERROR_OFFSET -3
3333

34-
volatile uint32_t* pi_2_mmio_gpio;
34+
extern volatile uint32_t* pi_2_mmio_gpio;
3535

3636
int pi_2_mmio_init(void);
3737

0 commit comments

Comments
 (0)