main: swap around USART1 and USART2 to be compatible with tbm-schematics

This commit is contained in:
S.J.R. van Schaik 2017-07-28 13:15:07 +02:00
parent 0ee4779e5c
commit 33373dd250
4 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,6 @@ STLINK_PORT ?= :4242
obj-y += source/core/spi.o
obj-y += source/drivers/spi_flash.o
obj-y += source/drivers/usart_console.o
$(OPENCM3_DIR)/lib/lib$(OPENCM3_LIBNAME).a:
@if [ ! -e libopencm3/.git ]; then \

View file

@ -51,8 +51,8 @@ int main(void)
gpio_init();
rtc_init(NULL);
user_con = console_init(0);
admin_con = console_init(1);
user_con = console_init(1);
admin_con = console_init(0);
flash = flash_probe();
flash = ftl_mount(flash);

View file

@ -2,3 +2,4 @@ obj-y += source/platform/stm32f0/gpio.o
obj-y += source/platform/stm32f0/rcc.o
obj-y += source/platform/stm32f0/rtc.o
obj-y += source/platform/stm32f0/spi.o
obj-y += source/platform/stm32f0/usart.o