aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/LPC11xx/IRQ_STORM/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/LPC11xx/IRQ_STORM/main.c')
-rw-r--r--testhal/LPC11xx/IRQ_STORM/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/testhal/LPC11xx/IRQ_STORM/main.c b/testhal/LPC11xx/IRQ_STORM/main.c
index 351b39039..5facfaf60 100644
--- a/testhal/LPC11xx/IRQ_STORM/main.c
+++ b/testhal/LPC11xx/IRQ_STORM/main.c
@@ -170,29 +170,29 @@ static const GPTConfig gpt2cfg = {
static void print(char *p) {
while (*p) {
- chIOPut(&SD1, *p++);
+ chSequentialStreamPut(&SD1, *p++);
}
}
static void println(char *p) {
while (*p) {
- chIOPut(&SD1, *p++);
+ chSequentialStreamPut(&SD1, *p++);
}
- chIOWriteTimeout(&SD1, (uint8_t *)"\r\n", 2, TIME_INFINITE);
+ chSequentialStreamWrite(&SD1, (uint8_t *)"\r\n", 2);
}
static void printn(uint32_t n) {
char buf[16], *p;
if (!n)
- chIOPut(&SD1, '0');
+ chSequentialStreamPut(&SD1, '0');
else {
p = buf;
while (n)
*p++ = (n % 10) + '0', n /= 10;
while (p > buf)
- chIOPut(&SD1, *--p);
+ chSequentialStreamPut(&SD1, *--p);
}
}