diff options
Diffstat (limited to 'testhal/STM32/STM32F4xx')
-rw-r--r-- | testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c | 10 | ||||
-rw-r--r-- | testhal/STM32/STM32F4xx/USB_CDC/main.c | 1 | ||||
-rw-r--r-- | testhal/STM32/STM32F4xx/USB_CDC_IAD/main.c | 1 |
3 files changed, 5 insertions, 7 deletions
diff --git a/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c b/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c index b72d9210f..2d558d26a 100644 --- a/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c +++ b/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c @@ -171,29 +171,29 @@ CH_FAST_IRQ_HANDLER(Vector184) { static void print(char *p) {
while (*p) {
- chSequentialStreamPut(&SD2, *p++);
+ streamPut(&SD2, *p++);
}
}
static void println(char *p) {
while (*p) {
- chSequentialStreamPut(&SD2, *p++);
+ streamPut(&SD2, *p++);
}
- chSequentialStreamWrite(&SD2, (uint8_t *)"\r\n", 2);
+ streamWrite(&SD2, (uint8_t *)"\r\n", 2);
}
static void printn(uint32_t n) {
char buf[16], *p;
if (!n)
- chSequentialStreamPut(&SD2, '0');
+ streamPut(&SD2, '0');
else {
p = buf;
while (n)
*p++ = (n % 10) + '0', n /= 10;
while (p > buf)
- chSequentialStreamPut(&SD2, *--p);
+ streamPut(&SD2, *--p);
}
}
diff --git a/testhal/STM32/STM32F4xx/USB_CDC/main.c b/testhal/STM32/STM32F4xx/USB_CDC/main.c index 27e66adc8..971980ec0 100644 --- a/testhal/STM32/STM32F4xx/USB_CDC/main.c +++ b/testhal/STM32/STM32F4xx/USB_CDC/main.c @@ -19,7 +19,6 @@ #include "ch.h"
#include "hal.h"
-#include "test.h"
#include "shell.h"
#include "chprintf.h"
diff --git a/testhal/STM32/STM32F4xx/USB_CDC_IAD/main.c b/testhal/STM32/STM32F4xx/USB_CDC_IAD/main.c index 6519e845b..6521c1ded 100644 --- a/testhal/STM32/STM32F4xx/USB_CDC_IAD/main.c +++ b/testhal/STM32/STM32F4xx/USB_CDC_IAD/main.c @@ -19,7 +19,6 @@ #include "ch.h"
#include "hal.h"
-#include "test.h"
#include "shell.h"
#include "chprintf.h"
|