mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
change config to use USB0 only
fix some compiler warnings
This commit is contained in:
parent
ee9d53477a
commit
3f9a73a34d
@ -62,6 +62,9 @@
|
||||
#endif
|
||||
|
||||
|
||||
void keyboard_app_init(void);
|
||||
OSAL_TASK_DECLARE( keyboard_app_task );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -5,6 +5,9 @@
|
||||
#include "boards/board.h"
|
||||
#include "tusb.h"
|
||||
|
||||
#include "mouse_app.h"
|
||||
#include "keyboard_app.h"
|
||||
|
||||
#if defined(__CODE_RED)
|
||||
#include <cr_section_macros.h>
|
||||
#include <NXP/crp.h>
|
||||
|
@ -61,6 +61,9 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void mouse_app_init(void);
|
||||
OSAL_TASK_DECLARE( mouse_app_task );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -59,7 +59,7 @@
|
||||
// CONTROLLER CONFIGURATION
|
||||
//--------------------------------------------------------------------+
|
||||
#define TUSB_CFG_CONTROLLER0_MODE (TUSB_MODE_HOST)
|
||||
#define TUSB_CFG_CONTROLLER1_MODE (TUSB_MODE_HOST)
|
||||
#define TUSB_CFG_CONTROLLER1_MODE (TUSB_MODE_NONE)
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// HOST CONFIGURATION
|
||||
|
@ -531,7 +531,7 @@ void period_list_process_isr(uint8_t hostid, uint8_t interval_ms)
|
||||
|
||||
// TODO abstract max loop guard for period
|
||||
while( !next_item.terminate &&
|
||||
!(interval_ms > 1 && align32(next_item.address) == get_period_head(hostid, 1)) &&
|
||||
!(interval_ms > 1 && align32(next_item.address) == (uint32_t) get_period_head(hostid, 1)) &&
|
||||
max_loop < (EHCI_MAX_QHD + EHCI_MAX_ITD + EHCI_MAX_SITD))
|
||||
{
|
||||
switch ( next_item.type )
|
||||
|
Loading…
x
Reference in New Issue
Block a user