diff options
| author | Kamil Tomaszewski <[email protected]> | 2019-10-07 14:03:02 +0200 |
|---|---|---|
| committer | Kamil Tomaszewski <[email protected]> | 2019-10-07 14:03:02 +0200 |
| commit | b3872febe2651d51a08941352dc1a5e66df74d4b (patch) | |
| tree | fbd6bf300b5c20738397a4b3a911e078892cd1d4 /src | |
| parent | 0747c4b61bdb19f2c2e7ecf4ce7033d69487bb76 (diff) | |
Disable/enable interrupt
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/sony/cxd56/dcd_cxd56.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/portable/sony/cxd56/dcd_cxd56.c b/src/portable/sony/cxd56/dcd_cxd56.c index 32eb50a6f..3698e5103 100644 --- a/src/portable/sony/cxd56/dcd_cxd56.c +++ b/src/portable/sony/cxd56/dcd_cxd56.c @@ -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 |
