From 18b8b495244411bb33254ea0d8b868259077be7d Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 8 Feb 2012 17:53:52 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3946 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32F1xx/UART/main.c | 3 +++ testhal/STM32F4xx/UART/main.c | 3 +++ testhal/STM32L1xx/UART/main.c | 3 +++ 3 files changed, 9 insertions(+) (limited to 'testhal') 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) { -- cgit v1.2.3