vf6xx: initial GPIO support

This adds GPIO module support. GPIO can be controlled using the GPIO
number as stated in the reference manual, similar to Linux. Also
32-bit access to whole ports is possible. Reading a GPIO is possible
without muxing the pad as GPIO, however writing a GPIO needs the pad
to be muxed as GPIO.
This commit is contained in:
Stefan Agner
2014-07-03 20:26:25 +02:00
committed by Frantisek Burian
parent a1d456521d
commit 2e1cbcae22
4 changed files with 215 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ CFLAGS = -Os -g \
-mcpu=cortex-m4 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
-ffunction-sections -fdata-sections -MD -DVF6XX
ARFLAGS = rcs
OBJS = ccm.o uart.o
OBJS = ccm.o uart.o gpio.o
VPATH += ../cm3