diff options
Diffstat (limited to 'testhal/STM32F4xx/IRQ_STORM_FPU/main.c')
-rw-r--r-- | testhal/STM32F4xx/IRQ_STORM_FPU/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testhal/STM32F4xx/IRQ_STORM_FPU/main.c b/testhal/STM32F4xx/IRQ_STORM_FPU/main.c index 0b0e86740..c32cbf10f 100644 --- a/testhal/STM32F4xx/IRQ_STORM_FPU/main.c +++ b/testhal/STM32F4xx/IRQ_STORM_FPU/main.c @@ -150,29 +150,29 @@ static const GPTConfig gpt3cfg = { static void print(char *p) {
while (*p) {
- chIOPut(&SD2, *p++);
+ chSequentialStreamPut(&SD2, *p++);
}
}
static void println(char *p) {
while (*p) {
- chIOPut(&SD2, *p++);
+ chSequentialStreamPut(&SD2, *p++);
}
- chIOWriteTimeout(&SD2, (uint8_t *)"\r\n", 2, TIME_INFINITE);
+ chSequentialStreamWrite(&SD2, (uint8_t *)"\r\n", 2);
}
static void printn(uint32_t n) {
char buf[16], *p;
if (!n)
- chIOPut(&SD2, '0');
+ chSequentialStreamPut(&SD2, '0');
else {
p = buf;
while (n)
*p++ = (n % 10) + '0', n /= 10;
while (p > buf)
- chIOPut(&SD2, *--p);
+ chSequentialStreamPut(&SD2, *--p);
}
}
|