mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
2d552285cd
This patch adds the gpio.c and gpio.h files, which support access to GPIO Controller (non-legacy) configuration register through a function interface. It doesn't add interrupt support due to pinmux reasons. On Galileo Gen 2 we need to configure a pin as input/interrupt using pinmux and this can only be achieved through I2C. There's one pin exported by default as GPIO output and we used this one to test this driver. In the future, we plan to add an I2C driver and a pinmux configuration driver in order to solve this kind of problems.
10 lines
380 B
Makefile
10 lines
380 B
Makefile
include $(CONTIKI)/cpu/x86/Makefile.x86_common
|
|
|
|
CONTIKI_CPU_DIRS += drivers/legacy_pc drivers/quarkX1000 init/legacy_pc
|
|
|
|
CONTIKI_SOURCEFILES += bootstrap_quarkX1000.S rtc.c pit.c pic.c irq.c nmi.c pci.c uart-16x50.c uart.c gpio.c
|
|
|
|
CFLAGS += -m32 -march=i586 -mtune=i586
|
|
LDFLAGS += -m32 -Xlinker -T -Xlinker $(CONTIKI)/cpu/x86/quarkX1000.ld
|
|
ASFLAGS += --32 -march=i586 -mtune=i586
|