Skip to content

Commit 108ce2e

Browse files
authored
Add events for USB Device (#2449)
***NO_CI***
1 parent b29f217 commit 108ce2e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/CLR/Include/nanoCLR_Runtime.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3392,6 +3392,8 @@ typedef enum Events
33923392
Event_Radio = 0x00000400,
33933393
Event_Wifi_Station = 0x00000800,
33943394
Event_Bluetooth = 0x00001000,
3395+
Event_UsbIn = 0x00002000,
3396+
Event_UsbOut = 0x00004000,
33953397
Event_AppDomain = 0x02000000,
33963398
Event_Socket = 0x20000000,
33973399
Event_IdleCPU = 0x40000000,

src/HAL/Include/nanoHAL_v2.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ typedef enum SLEEP_LEVEL
6161
#define SYSTEM_EVENT_FLAG_COM_OUT 0x00000002
6262
#define SYSTEM_EVENT_FLAG_STORAGE_IO 0x00000004
6363
#define SYSTEM_EVENT_FLAG_SYSTEM_TIMER 0x00000010
64+
#define SYSTEM_EVENT_FLAG_USB_IN 0x00000020
65+
#define SYSTEM_EVENT_FLAG_USB_OUT 0x00000040
6466
//#define SYSTEM_EVENT_FLAG_TIMER1 0x00000020
6567
//#define SYSTEM_EVENT_FLAG_TIMER2 0x00000040
6668
//#define SYSTEM_EVENT_FLAG_BUTTON 0x00000080
@@ -108,9 +110,9 @@ typedef enum SLEEP_LEVEL
108110
#define EVENT_RADIO 80
109111
#define EVENT_HIGH_RESOLUTION_TIMER 90
110112
#define EVENT_BLUETOOTH 100
111-
112-
#define EVENT_TOUCH 120
113-
#define EVENT_GESTURE 130
113+
#define EVENT_USB 110
114+
#define EVENT_TOUCH 120
115+
#define EVENT_GESTURE 130
114116

115117
#define PAL_EVENT_TOUCH 0x1
116118
#define PAL_EVENT_KEY 0x2

0 commit comments

Comments
 (0)