aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32F4xx/UART/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32F4xx/UART/main.c')
-rw-r--r--testhal/STM32F4xx/UART/main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/testhal/STM32F4xx/UART/main.c b/testhal/STM32F4xx/UART/main.c
index fcd6fa965..2e41480ad 100644
--- a/testhal/STM32F4xx/UART/main.c
+++ b/testhal/STM32F4xx/UART/main.c
@@ -17,7 +17,7 @@
#include "ch.h"
#include "hal.h"
-static VirtualTimer vt3, vt4, vt5;
+static virtual_timer_t vt3, vt4, vt5;
static const uint8_t message[] = "0123456789ABCDEF";
static uint8_t buffer[16];
@@ -56,11 +56,11 @@ static void txend2(UARTDriver *uartp) {
(void)uartp;
palSetPad(GPIOD, GPIOD_LED5);
- chSysLockFromIsr();
+ chSysLockFromISR();
if (chVTIsArmedI(&vt5))
chVTResetI(&vt5);
chVTSetI(&vt5, MS2ST(200), led5off, NULL);
- chSysUnlockFromIsr();
+ chSysUnlockFromISR();
}
/*
@@ -83,11 +83,11 @@ static void rxchar(UARTDriver *uartp, uint16_t c) {
(void)c;
/* Flashing the LED each time a character is received.*/
palSetPad(GPIOD, GPIOD_LED4);
- chSysLockFromIsr();
+ chSysLockFromISR();
if (chVTIsArmedI(&vt4))
chVTResetI(&vt4);
chVTSetI(&vt4, MS2ST(200), led4off, NULL);
- chSysUnlockFromIsr();
+ chSysUnlockFromISR();
}
/*
@@ -99,11 +99,11 @@ static void rxend(UARTDriver *uartp) {
/* Flashing the LED each time a character is received.*/
palSetPad(GPIOD, GPIOD_LED3);
- chSysLockFromIsr();
+ chSysLockFromISR();
if (chVTIsArmedI(&vt3))
chVTResetI(&vt3);
chVTSetI(&vt3, MS2ST(200), led3off, NULL);
- chSysUnlockFromIsr();
+ chSysUnlockFromISR();
}
/*