stm32f0: use usart-v2 instead of private usart
Use the usart-common base plus the usart-v2 code, instead of private implementations. Less code, more common apis across targets. Of note is the trick to make F0 look like it has an APB2 bus. It's the only stm32 that doesn't have a documented APB2 bus, but still has peripherals enabled via an "APB2" register, and they match how other targets have an APB2. Simply make APB2 an alias of APB1, as it's only used for clock speed detection.
This commit is contained in:
@@ -46,7 +46,7 @@ OBJS += gpio_common_all.o gpio_common_f0234.o crc_common_all.o \
|
||||
timer_common_all.o timer_common_f0234.o rcc_common_all.o
|
||||
OBJS += adc_common_v2.o
|
||||
OBJS += crs_common_all.o
|
||||
OBJS += usart_common_v2.o
|
||||
OBJS += usart_common_all.o usart_common_v2.o
|
||||
OBJS += i2c_common_v2.o
|
||||
|
||||
OBJS += usb.o usb_control.o usb_standard.o
|
||||
|
||||
Reference in New Issue
Block a user