diff options
Diffstat (limited to 'testhal/STM32F1xx/UART')
-rw-r--r-- | testhal/STM32F1xx/UART/main.c | 3 |
1 files changed, 3 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) {
|