aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx/DMA_STORM/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/STM32F4xx/DMA_STORM/main.c')
-rw-r--r--testhal/STM32/STM32F4xx/DMA_STORM/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/testhal/STM32/STM32F4xx/DMA_STORM/main.c b/testhal/STM32/STM32F4xx/DMA_STORM/main.c
index a8ab3ee03..67ec7fb3e 100644
--- a/testhal/STM32/STM32F4xx/DMA_STORM/main.c
+++ b/testhal/STM32/STM32F4xx/DMA_STORM/main.c
@@ -45,7 +45,7 @@ static void adccallback(ADCDriver *adcp, adcsample_t *buffer, size_t n) {
(void)n;
chSysLockFromISR();
- chVTSetI(&adcvt, MS2ST(10), tmo, (void *)"ADC timeout");
+ chVTSetI(&adcvt, TIME_MS2I(10), tmo, (void *)"ADC timeout");
chSysUnlockFromISR();
}
@@ -118,7 +118,7 @@ static THD_FUNCTION(spi_thread, p) {
while (true) {
/* Starts a VT working as watchdog to catch a malfunction in the SPI
driver.*/
- chVTSet(&vt, MS2ST(10), tmo, (void *)"SPI timeout");
+ chVTSet(&vt, TIME_MS2I(10), tmo, (void *)"SPI timeout");
spiExchange(spip, sizeof(txbuf), txbuf, rxbuf);
@@ -172,7 +172,7 @@ int main(void) {
adcSTM32EnableTSVREFE();
/* Starts an ADC continuous conversion and its watchdog virtual timer.*/
- chVTSet(&adcvt, MS2ST(10), tmo, (void *)"ADC timeout");
+ chVTSet(&adcvt, TIME_MS2I(10), tmo, (void *)"ADC timeout");
adcStartConversion(&ADCD1, &adcgrpcfg2, samples2, ADC_GRP2_BUF_DEPTH);
/* Activating SPI drivers.*/
@@ -204,7 +204,7 @@ int main(void) {
/* Starts a VT working as watchdog to catch a malfunction in the DMA
driver.*/
- chVTSet(&vt, MS2ST(10), tmo, (void *)"copy timeout");
+ chVTSet(&vt, TIME_MS2I(10), tmo, (void *)"copy timeout");
/* Copy pattern 1.*/
dmaStartMemCopy(STM32_DMA2_STREAM6,