Disable/enable interrupt

This commit is contained in:
Kamil Tomaszewski 2019-10-07 14:03:02 +02:00
parent 0747c4b61b
commit b3872febe2
1 changed files with 4 additions and 0 deletions

View File

@ -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