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:
committed by
Frantisek Burian
parent
c9857ad52a
commit
a1d456521d
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user