diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-08-01 09:11:17 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-08-01 09:11:17 +0000 |
commit | 527125f126fdff704288c50c8d11b078f96d5dd6 (patch) | |
tree | 63d22e7b05a37d182cff9684420a8dc3f9049b2b /testhal/STM32 | |
parent | b16d5b7da962a3519282d66a4350b88caaa45b76 (diff) | |
download | ChibiOS-527125f126fdff704288c50c8d11b078f96d5dd6.tar.gz ChibiOS-527125f126fdff704288c50c8d11b078f96d5dd6.tar.bz2 ChibiOS-527125f126fdff704288c50c8d11b078f96d5dd6.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2109 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32')
-rw-r--r-- | testhal/STM32/UART/Makefile | 4 | ||||
-rw-r--r-- | testhal/STM32/UART/main.c | 5 | ||||
-rw-r--r-- | testhal/STM32/UART/readme.txt | 26 | ||||
-rw-r--r-- | testhal/STM32/_stess_test/readme.txt | 4 |
4 files changed, 33 insertions, 6 deletions
diff --git a/testhal/STM32/UART/Makefile b/testhal/STM32/UART/Makefile index 76a8c978e..e430a7678 100644 --- a/testhal/STM32/UART/Makefile +++ b/testhal/STM32/UART/Makefile @@ -5,7 +5,7 @@ # Compiler options here.
ifeq ($(USE_OPT),)
- USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16
+ USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
endif
# C++ specific options here (added to USE_OPT).
@@ -62,7 +62,7 @@ include $(CHIBIOS)/os/hal/platforms/STM32/platform.mk include $(CHIBIOS)/os/hal/hal.mk
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F10x/port.mk
include $(CHIBIOS)/os/kernel/kernel.mk
-include $(CHIBIOS)/test/test.mk
+#include $(CHIBIOS)/test/test.mk
# C sources that can be compiled in ARM or THUMB mode depending on the global
# setting.
diff --git a/testhal/STM32/UART/main.c b/testhal/STM32/UART/main.c index e111935d7..121a1f4cb 100644 --- a/testhal/STM32/UART/main.c +++ b/testhal/STM32/UART/main.c @@ -73,8 +73,9 @@ static void rxchar(uint16_t c) { /* Flashing the LED each time a character is received.*/
palClearPad(IOPORT3, GPIOC_LED);
chSysLockFromIsr();
- if (!chVTIsArmedI(&vt2))
- chVTSetI(&vt2, MS2ST(200), ledoff, NULL);
+ if (chVTIsArmedI(&vt2))
+ chVTResetI(&vt2);
+ chVTSetI(&vt2, MS2ST(200), ledoff, NULL);
chSysUnlockFromIsr();
}
diff --git a/testhal/STM32/UART/readme.txt b/testhal/STM32/UART/readme.txt new file mode 100644 index 000000000..fc111a298 --- /dev/null +++ b/testhal/STM32/UART/readme.txt @@ -0,0 +1,26 @@ +*****************************************************************************
+** ChibiOS/RT HAL - UART driver demo for STM32. **
+*****************************************************************************
+
+** TARGET **
+
+The demo will on an Olimex STM32-P103 board.
+
+** The Demo **
+
+The application demonstrates the use of the STM32 UART driver.
+
+** Build Procedure **
+
+The demo has been tested by using the free Codesourcery GCC-based toolchain
+and YAGARTO.
+Just modify the TRGT line in the makefile in order to use different GCC ports.
+
+** Notes **
+
+Some files used by the demo are not part of ChibiOS/RT but are copyright of
+ST Microelectronics and are licensed under a different license.
+Also note that not all the files present in the ST library are distribited
+with ChibiOS/RT, you can find the whole library on the ST web site:
+
+ http://www.st.com
diff --git a/testhal/STM32/_stess_test/readme.txt b/testhal/STM32/_stess_test/readme.txt index 5a31ecc17..a0f2e3897 100644 --- a/testhal/STM32/_stess_test/readme.txt +++ b/testhal/STM32/_stess_test/readme.txt @@ -16,8 +16,8 @@ warned if you see anomalies in your debugger. ** Build Procedure **
-The demo has been tested by using the free Codesourcery GCC-based toolchain,
-YAGARTO and an experimental WinARM build including GCC 4.3.0.
+The demo has been tested by using the free Codesourcery GCC-based toolchain
+and YAGARTO.
Just modify the TRGT line in the makefile in order to use different GCC ports.
** Notes **
|