diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-06-21 16:25:11 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-06-21 16:25:11 +0000 |
commit | 43011f1886d70446f3f48f79cb99be2a07b6d33f (patch) | |
tree | f2ec297bc12a94047c6a01978931f28141663aaa /testhal/STM32F1xx/IRQ_STORM/main.c | |
parent | 8fb998f0a5bcc315fc45a3af1707551de03af63b (diff) | |
download | ChibiOS-43011f1886d70446f3f48f79cb99be2a07b6d33f.tar.gz ChibiOS-43011f1886d70446f3f48f79cb99be2a07b6d33f.tar.bz2 ChibiOS-43011f1886d70446f3f48f79cb99be2a07b6d33f.zip |
STM32 support enhancements, some other fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4313 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32F1xx/IRQ_STORM/main.c')
-rw-r--r-- | testhal/STM32F1xx/IRQ_STORM/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testhal/STM32F1xx/IRQ_STORM/main.c b/testhal/STM32F1xx/IRQ_STORM/main.c index 0597c3030..c3debb0d2 100644 --- a/testhal/STM32F1xx/IRQ_STORM/main.c +++ b/testhal/STM32F1xx/IRQ_STORM/main.c @@ -170,29 +170,29 @@ static const GPTConfig gpt2cfg = { 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);
}
}
|