mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-29 01:20:19 +00: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 dcd_int_enable(uint8_t rhport)
|
||||||
{
|
{
|
||||||
(void) rhport;
|
(void) rhport;
|
||||||
|
|
||||||
|
__asm volatile ("cpsie i" : : : "memory");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disable device interrupt
|
// Disable device interrupt
|
||||||
void dcd_int_disable(uint8_t rhport)
|
void dcd_int_disable(uint8_t rhport)
|
||||||
{
|
{
|
||||||
(void) rhport;
|
(void) rhport;
|
||||||
|
|
||||||
|
__asm volatile ("cpsid i" : : : "memory");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Receive Set Address request, mcu port must also include status IN response
|
// Receive Set Address request, mcu port must also include status IN response
|
||||||
|
Loading…
x
Reference in New Issue
Block a user