contrib/firmware: Change USB interruption handling for JTAG/I2C communications
[openocd.git] / contrib / firmware / angie / c / src / usb.c
index a137d3d37e636c043872ce72357170966eb0f2e4..ed23dcfa5ace9921709a2b03b26151a27d57a7b9 100644 (file)
@@ -25,6 +25,7 @@
  */
 volatile bool ep1_out;
 volatile bool ep1_in;
+volatile bool ep6_out;
 
 volatile __xdata __at 0xE6B8 struct setup_data setup_data;
 
@@ -195,27 +196,24 @@ void ep0out_isr(void)__interrupt  EP0OUT_ISR
 void ep1in_isr(void)__interrupt        EP1IN_ISR
 {
        ep1_in = true;
-
        EXIF &= ~0x10;  /* Clear USBINT: Main global interrupt */
        EPIRQ = 0x04;   /* Clear individual EP1IN IRQ */
 }
 void ep1out_isr(void)__interrupt       EP1OUT_ISR
 {
        ep1_out = true;
-
        EXIF &= ~0x10;  /* Clear USBINT: Main global interrupt */
        EPIRQ = 0x08;   /* Clear individual EP1OUT IRQ */
 }
 void ep2_isr(void)__interrupt  EP2_ISR
 {
-       ep1_out = false; /* Does nothing but required by the compiler */
 }
 void ep4_isr(void)__interrupt  EP4_ISR
 {
 }
 void ep6_isr(void)__interrupt  EP6_ISR
 {
-       i2c_recieve();
+       ep6_out = true;
        EXIF &= ~0x10;  /* Clear USBINT: Main global interrupt */
        EPIRQ = 0x40;   /* Clear individual EP6OUT IRQ */
 

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)