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:
@@ -3,7 +3,6 @@
|
||||
<name>host</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
<project>tinyusb</project>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user