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

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