diff --git a/.cproject b/.cproject index 3c9689e..67f4bf4 100755 --- a/.cproject +++ b/.cproject @@ -146,6 +146,7 @@ make + all true true @@ -153,6 +154,7 @@ make + clean true true @@ -160,7 +162,6 @@ make - distclean true false @@ -216,6 +217,7 @@ make + all true true @@ -247,6 +249,7 @@ make + distclean true true @@ -260,7 +263,7 @@ false true - + make TEST_APP=uart BOARD=stm32f4-discovery DEBUG=y test @@ -268,14 +271,6 @@ false true - - make - TEST_APP=uart BOARD=stm32f4-discovery DEBUG=y - install - true - false - true - make TEST_APP=shell BOARD=stm32f4-discovery DEBUG=y @@ -318,6 +313,7 @@ make + all true true @@ -325,6 +321,7 @@ make + clean true true diff --git a/config/make/stm32f4xx.mk b/config/make/stm32f4xx.mk index 784d33e..f5c58bc 100644 --- a/config/make/stm32f4xx.mk +++ b/config/make/stm32f4xx.mk @@ -9,8 +9,8 @@ endif CROSS_COMPILE ?= arm-none-eabi- INCLUDES += \ - /opt/arm-2011.09/arm-none-eabi/include \ - /opt/arm-2011.09/lib/gcc/arm-none-eabi/4.6.1/include + /opt/gcc-arm-none-eabi-5_4-2016q2/arm-none-eabi/include \ + /opt/gcc-arm-none-eabi-5_4-2016q2/lib/gcc/arm-none-eabi/5.4.1/include GEN_FLAGS += \ -mcpu=cortex-m4 \ diff --git a/source/test/uart/main.c b/source/test/uart/main.c index 1f9a9ae..fe17ca3 100644 --- a/source/test/uart/main.c +++ b/source/test/uart/main.c @@ -26,15 +26,9 @@ struct thread_context th_ctx; static void th_func(void *arg) { drv_open(&uart_1); - drv_open(&gpio_d12); - drv_write(&gpio_d12, "0", 1); while(1) { + drv_write(&uart_1, "test\r\n", 6); sleep_ms(1000); - drv_write(&uart_1, "set_led\r\n", 9); - drv_write(&gpio_d12, "1", 1); - sleep_ms(1000); - drv_write(&uart_1, "unset_led\r\n", 11); - drv_write(&gpio_d12, "0", 1); } }