vf6xx: add UART support

This adds UART support for Vybrid VF6xx. Baud rate is calculated
from IPG clock, which need to be initialized by using the
ccm_calculate_clocks functions. Also clock need to be gated using
the ccm_clock_gate_enable function. Tested with an unitialized
UART with a baud rate of 115200.
This commit is contained in:
Stefan Agner
2014-07-03 17:12:11 +02:00
committed by Frantisek Burian
parent c9857ad52a
commit a1d456521d
3 changed files with 408 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
OBJS = ccm.o uart.o
VPATH += ../cm3