diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-08-22 06:20:38 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-08-22 06:20:38 +0000 |
commit | 10c2f6387035ca3b1865b00492d64627674be12d (patch) | |
tree | 7b64a723acb1497847ce0cb32dada96aadc17412 | |
parent | f83c58d4a4219888df1d3c95e3849ce1f4072d54 (diff) | |
download | ChibiOS-10c2f6387035ca3b1865b00492d64627674be12d.tar.gz ChibiOS-10c2f6387035ca3b1865b00492d64627674be12d.tar.bz2 ChibiOS-10c2f6387035ca3b1865b00492d64627674be12d.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4609 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | testhal/STM32L1xx/IRQ_STORM/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testhal/STM32L1xx/IRQ_STORM/main.c b/testhal/STM32L1xx/IRQ_STORM/main.c index a062a1bd3..31ec40fb5 100644 --- a/testhal/STM32L1xx/IRQ_STORM/main.c +++ b/testhal/STM32L1xx/IRQ_STORM/main.c @@ -170,29 +170,29 @@ static const GPTConfig gpt3cfg = { 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);
}
}
|