mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-07 05:54:11 +08:00
disable device mouse by default
fix hal_debugger_is_attached with lpc11u
This commit is contained in:
parent
d1ecec49d1
commit
9a48a4aa03
@ -956,7 +956,7 @@
|
|||||||
<Focus>0</Focus>
|
<Focus>0</Focus>
|
||||||
<ColumnNumber>3</ColumnNumber>
|
<ColumnNumber>3</ColumnNumber>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<TopLine>72</TopLine>
|
<TopLine>73</TopLine>
|
||||||
<CurrentLine>76</CurrentLine>
|
<CurrentLine>76</CurrentLine>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\src\main.c</PathWithFileName>
|
<PathWithFileName>..\src\main.c</PathWithFileName>
|
||||||
@ -1004,7 +1004,7 @@
|
|||||||
<Focus>0</Focus>
|
<Focus>0</Focus>
|
||||||
<ColumnNumber>1</ColumnNumber>
|
<ColumnNumber>1</ColumnNumber>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<TopLine>108</TopLine>
|
<TopLine>106</TopLine>
|
||||||
<CurrentLine>112</CurrentLine>
|
<CurrentLine>112</CurrentLine>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\src\keyboard_device_app.c</PathWithFileName>
|
<PathWithFileName>..\src\keyboard_device_app.c</PathWithFileName>
|
||||||
@ -1092,7 +1092,7 @@
|
|||||||
<Focus>0</Focus>
|
<Focus>0</Focus>
|
||||||
<ColumnNumber>6</ColumnNumber>
|
<ColumnNumber>6</ColumnNumber>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<TopLine>58</TopLine>
|
<TopLine>56</TopLine>
|
||||||
<CurrentLine>61</CurrentLine>
|
<CurrentLine>61</CurrentLine>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\tinyusb\tusb.c</PathWithFileName>
|
<PathWithFileName>..\..\..\tinyusb\tusb.c</PathWithFileName>
|
||||||
@ -1396,7 +1396,7 @@
|
|||||||
<Focus>0</Focus>
|
<Focus>0</Focus>
|
||||||
<ColumnNumber>47</ColumnNumber>
|
<ColumnNumber>47</ColumnNumber>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<TopLine>422</TopLine>
|
<TopLine>417</TopLine>
|
||||||
<CurrentLine>427</CurrentLine>
|
<CurrentLine>427</CurrentLine>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\tinyusb\device\usbd.c</PathWithFileName>
|
<PathWithFileName>..\..\..\tinyusb\device\usbd.c</PathWithFileName>
|
||||||
@ -2012,7 +2012,7 @@
|
|||||||
<Focus>0</Focus>
|
<Focus>0</Focus>
|
||||||
<ColumnNumber>54</ColumnNumber>
|
<ColumnNumber>54</ColumnNumber>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<TopLine>155</TopLine>
|
<TopLine>156</TopLine>
|
||||||
<CurrentLine>160</CurrentLine>
|
<CurrentLine>160</CurrentLine>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\mcu\lpc43xx\keil\startup_LPC43xx.s</PathWithFileName>
|
<PathWithFileName>..\..\..\mcu\lpc43xx\keil\startup_LPC43xx.s</PathWithFileName>
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
|
|
||||||
//------------- CLASS -------------//
|
//------------- CLASS -------------//
|
||||||
#define TUSB_CFG_DEVICE_HID_KEYBOARD 1
|
#define TUSB_CFG_DEVICE_HID_KEYBOARD 1
|
||||||
#define TUSB_CFG_DEVICE_HID_MOUSE 1
|
#define TUSB_CFG_DEVICE_HID_MOUSE 0
|
||||||
#define TUSB_CFG_DEVICE_HID_GENERIC 0 // not supported yet
|
#define TUSB_CFG_DEVICE_HID_GENERIC 0 // not supported yet
|
||||||
#define TUSB_CFG_DEVICE_MSC 1
|
#define TUSB_CFG_DEVICE_MSC 1
|
||||||
#define TUSB_CFG_DEVICE_CDC 1
|
#define TUSB_CFG_DEVICE_CDC 1
|
||||||
|
@ -110,7 +110,7 @@ static inline bool hal_debugger_is_attached(void)
|
|||||||
#elif TUSB_CFG_DEBUG == 3
|
#elif TUSB_CFG_DEBUG == 3
|
||||||
return true; // force to break into breakpoint with debug = 3
|
return true; // force to break into breakpoint with debug = 3
|
||||||
#else
|
#else
|
||||||
return false
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user