aboutsummaryrefslogtreecommitdiffstats
path: root/testhal
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-02-08 17:53:52 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-02-08 17:53:52 +0000
commit18b8b495244411bb33254ea0d8b868259077be7d (patch)
treebe8ecfe583b4de2ad67d2b2196cabf8992e87d13 /testhal
parent6894617b8ebc8453a1ed5e672fb225d0c4f2f51b (diff)
downloadChibiOS-18b8b495244411bb33254ea0d8b868259077be7d.tar.gz
ChibiOS-18b8b495244411bb33254ea0d8b868259077be7d.tar.bz2
ChibiOS-18b8b495244411bb33254ea0d8b868259077be7d.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3946 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal')
-rw-r--r--testhal/STM32F1xx/UART/main.c3
-rw-r--r--testhal/STM32F4xx/UART/main.c3
-rw-r--r--testhal/STM32L1xx/UART/main.c3
3 files changed, 9 insertions, 0 deletions
diff --git a/testhal/STM32F1xx/UART/main.c b/testhal/STM32F1xx/UART/main.c
index bdc222e35..0d36e2b89 100644
--- a/testhal/STM32F1xx/UART/main.c
+++ b/testhal/STM32F1xx/UART/main.c
@@ -26,7 +26,10 @@ static VirtualTimer vt1, vt2;
static void restart(void *p) {
(void)p;
+
+ chSysLockFromIsr();
uartStartSendI(&UARTD2, 14, "Hello World!\r\n");
+ chSysUnlockFromIsr();
}
static void ledoff(void *p) {
diff --git a/testhal/STM32F4xx/UART/main.c b/testhal/STM32F4xx/UART/main.c
index 377a75934..69aed3c19 100644
--- a/testhal/STM32F4xx/UART/main.c
+++ b/testhal/STM32F4xx/UART/main.c
@@ -26,7 +26,10 @@ static VirtualTimer vt1, vt2;
static void restart(void *p) {
(void)p;
+
+ chSysLockFromIsr();
uartStartSendI(&UARTD2, 14, "Hello World!\r\n");
+ chSysUnlockFromIsr();
}
static void ledoff(void *p) {
diff --git a/testhal/STM32L1xx/UART/main.c b/testhal/STM32L1xx/UART/main.c
index 8bb5ea6d7..65f834672 100644
--- a/testhal/STM32L1xx/UART/main.c
+++ b/testhal/STM32L1xx/UART/main.c
@@ -26,7 +26,10 @@ static VirtualTimer vt1, vt2;
static void restart(void *p) {
(void)p;
+
+ chSysLockFromIsr();
uartStartSendI(&UARTD1, 14, "Hello World!\r\n");
+ chSysUnlockFromIsr();
}
static void ledoff(void *p) {