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…
Reference in New Issue