stm32:l4: enable usart peripheral

Tests in https://github.com/karlp/libopencm3-tests/tree/master/tests/uart-basic
This commit is contained in:
Karl Palsson 2017-10-25 23:54:32 +00:00
parent c119ee7f9a
commit f67966046a
2 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,8 @@
# include <libopencm3/stm32/l0/usart.h>
#elif defined(STM32L1)
# include <libopencm3/stm32/l1/usart.h>
#elif defined(STM32L4)
# include <libopencm3/stm32/l4/usart.h>
#else
# error "stm32 family not defined."
#endif

View File

@ -47,6 +47,7 @@ OBJS += adc_common_v2.o adc_common_v2_multi.o
OBJS += rng_common_v1.o
OBJS += timer_common_all.o
OBJS += i2c_common_v2.o
OBJS += usart_common_all.o usart_common_v2.o
VPATH += ../../usb:../:../../cm3:../common
VPATH += ../../ethernet