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/LPC13xx | |
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/LPC13xx')
-rw-r--r-- | testhal/LPC13xx/IRQ_STORM/main.c | 10 | ||||
-rw-r--r-- | testhal/LPC13xx/IRQ_STORM/mcuconf.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/testhal/LPC13xx/IRQ_STORM/main.c b/testhal/LPC13xx/IRQ_STORM/main.c index 22f6db1be..11080dbf2 100644 --- a/testhal/LPC13xx/IRQ_STORM/main.c +++ b/testhal/LPC13xx/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);
}
}
diff --git a/testhal/LPC13xx/IRQ_STORM/mcuconf.h b/testhal/LPC13xx/IRQ_STORM/mcuconf.h index 5b486fe63..3cf769402 100644 --- a/testhal/LPC13xx/IRQ_STORM/mcuconf.h +++ b/testhal/LPC13xx/IRQ_STORM/mcuconf.h @@ -54,7 +54,7 @@ #define LPC13xx_GPT_USE_CT32B0 TRUE
#define LPC13xx_GPT_USE_CT32B1 TRUE
#define LPC13xx_GPT_CT16B0_IRQ_PRIORITY 2
-#define LPC13xx_GPT_CT16B1_IRQ_PRIORITY 2
+#define LPC13xx_GPT_CT16B1_IRQ_PRIORITY 6
#define LPC13xx_GPT_CT32B0_IRQ_PRIORITY 2
#define LPC13xx_GPT_CT32B1_IRQ_PRIORITY 2
|