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

tags/0.1.0
S.J.R. van Schaik 8 years ago
parent 0ee4779e5c
commit 33373dd250
  1. 1
      scripts/Makefile.stm32f0
  2. 4
      source/main.c
  3. 1
      source/platform/stm32f0/Makefile
  4. 0
      source/platform/stm32f0/usart.c

@ -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 \

@ -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);

@ -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

Loading…
Cancel
Save