add ASSERT POINTER support

add hid host and separate hid host & device
update host project setting with EA4357 board
add para checking test for hid host
This commit is contained in:
hathach
2013-01-18 14:39:42 +07:00
parent 7976e2fd55
commit d8c8b9e38a
16 changed files with 816 additions and 73 deletions

View File

@@ -1,3 +1,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "boards/board.h"
#include "tusb.h"
@@ -15,15 +19,18 @@ int main(void)
uint32_t current_tick = system_ticks;
board_init();
tusb_init(0);
tusb_init();
while (1)
{
if (current_tick + 1000 < system_ticks)
{
current_tick += 1000;
board_leds(0x03, (current_tick/1000)%2); /* Toggle LED once per second */
printf("hello world");
board_leds(0x01, (current_tick/1000)%2); /* Toggle LED once per second */
printf("tinyusb: " __DATE__ "\t" __TIME__ "\n");
}
}
return 0;
}