move MCU define to tusb_option.h, fix the ATTR with USB RAM

hack: add delay before the very first xfer when enumerating (finalize later
after reading USB 2.0 specs)
This commit is contained in:
hathach
2013-04-08 03:45:31 +07:00
parent 95df92055c
commit ef850984da
6 changed files with 17 additions and 15 deletions
-1
View File
@@ -3,7 +3,6 @@
<name>host</name>
<comment></comment>
<projects>
<project>tinyusb</project>
</projects>
<buildSpec>
<buildCommand>
+1 -3
View File
@@ -46,9 +46,7 @@
//--------------------------------------------------------------------+
// INTERNAL OBJECT & FUNCTION DECLARATION
//--------------------------------------------------------------------+
//TUSB_CFG_ATTR_USBRAM
__attribute__ ((section(".data.$RAM3"))) // TODO hack for USB RAM
tusb_keyboard_report_t keyboard_report;
tusb_keyboard_report_t keyboard_report TUSB_CFG_ATTR_USBRAM;
//--------------------------------------------------------------------+
// IMPLEMENTATION
+1 -3
View File
@@ -46,9 +46,7 @@
//--------------------------------------------------------------------+
// INTERNAL OBJECT & FUNCTION DECLARATION
//--------------------------------------------------------------------+
//TUSB_CFG_ATTR_USBRAM
__attribute__ ((section(".data.$RAM3"))) // TODO hack for USB RAM
tusb_mouse_report_t mouse_report;
tusb_mouse_report_t mouse_report TUSB_CFG_ATTR_USBRAM;
//--------------------------------------------------------------------+
// IMPLEMENTATION