aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-08-23 12:22:25 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-08-23 12:22:25 +0000
commit613386635e578364e9bbc07a4bd8f57c8f661094 (patch)
tree21fb35d2acb383c8c69c18875e6a013f35022619
parent590c03982fcf964a54948e33952701d4fe76023b (diff)
downloadChibiOS-613386635e578364e9bbc07a4bd8f57c8f661094.tar.gz
ChibiOS-613386635e578364e9bbc07a4bd8f57c8f661094.tar.bz2
ChibiOS-613386635e578364e9bbc07a4bd8f57c8f661094.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6214 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--testhal/STM32F4xx/UART/main.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/testhal/STM32F4xx/UART/main.c b/testhal/STM32F4xx/UART/main.c
index 2e41480ad..3f01dc1a1 100644
--- a/testhal/STM32F4xx/UART/main.c
+++ b/testhal/STM32F4xx/UART/main.c
@@ -57,8 +57,7 @@ static void txend2(UARTDriver *uartp) {
(void)uartp;
palSetPad(GPIOD, GPIOD_LED5);
chSysLockFromISR();
- if (chVTIsArmedI(&vt5))
- chVTResetI(&vt5);
+ chVTResetI(&vt5);
chVTSetI(&vt5, MS2ST(200), led5off, NULL);
chSysUnlockFromISR();
}
@@ -84,8 +83,7 @@ static void rxchar(UARTDriver *uartp, uint16_t c) {
/* Flashing the LED each time a character is received.*/
palSetPad(GPIOD, GPIOD_LED4);
chSysLockFromISR();
- if (chVTIsArmedI(&vt4))
- chVTResetI(&vt4);
+ chVTResetI(&vt4);
chVTSetI(&vt4, MS2ST(200), led4off, NULL);
chSysUnlockFromISR();
}
@@ -100,8 +98,7 @@ static void rxend(UARTDriver *uartp) {
/* Flashing the LED each time a character is received.*/
palSetPad(GPIOD, GPIOD_LED3);
chSysLockFromISR();
- if (chVTIsArmedI(&vt3))
- chVTResetI(&vt3);
+ chVTResetI(&vt3);
chVTSetI(&vt3, MS2ST(200), led3off, NULL);
chSysUnlockFromISR();
}