mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
Disable/enable interrupt
This commit is contained in:
parent
0747c4b61b
commit
b3872febe2
@ -163,12 +163,16 @@ void dcd_init(uint8_t rhport)
|
||||
void dcd_int_enable(uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
|
||||
__asm volatile ("cpsie i" : : : "memory");
|
||||
}
|
||||
|
||||
// Disable device interrupt
|
||||
void dcd_int_disable(uint8_t rhport)
|
||||
{
|
||||
(void) rhport;
|
||||
|
||||
__asm volatile ("cpsid i" : : : "memory");
|
||||
}
|
||||
|
||||
// Receive Set Address request, mcu port must also include status IN response
|
||||
|
Loading…
x
Reference in New Issue
Block a user