let device runs with three interfaces.

This commit is contained in:
NIIBE Yutaka
2010-08-18 14:21:58 +09:00
parent e6116828c5
commit d42a45c1ee
5 changed files with 75 additions and 8 deletions

View File

@@ -70,7 +70,7 @@ stdout_init (void)
stdout.str = NULL;
}
static int
int
_write (const char *s, int size)
{
if (size == 0)
@@ -160,6 +160,9 @@ static msg_t Thread2 (void *arg)
return 0;
}
static WORKING_AREA(waUSBThread, 128);
extern msg_t USBThread (void *arg);
/*
* Entry point, note, the main() function is already a thread in the system
* on entry.
@@ -185,6 +188,8 @@ int main(int argc, char **argv)
*/
chThdCreateStatic (waThread2, sizeof(waThread2), NORMALPRIO, Thread2, NULL);
chThdCreateStatic (waUSBThread, sizeof(waUSBThread), NORMALPRIO, USBThread, NULL);
while (1)
{
#if 0