diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2013-05-27 17:34:22 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2013-05-27 17:40:08 +0900 |
commit | 6d568f91847ef8a35036cff25e1e8987c1b23763 (patch) | |
tree | 8fcc05628c62f6d1333d64b39de1bc0687fec790 /example-cdc | |
parent | b0cfda694f030d0b160a074c1d7f99bb12cbbcbf (diff) |
Bit fields, intr handling, etc.
Diffstat (limited to 'example-cdc')
-rw-r--r-- | example-cdc/sample.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/example-cdc/sample.c b/example-cdc/sample.c index 0c0481d..80b5ef5 100644 --- a/example-cdc/sample.c +++ b/example-cdc/sample.c @@ -69,7 +69,7 @@ usb_intr (void *arg) asm volatile ("cpsid i" : : : "memory"); /* Disable because of usb_lld_init assumes interrupt handler. */ usb_lld_init (0x80); /* Bus powered. */ - chopstx_intr_register (&interrupt, INTR_REQ_USB); + chopstx_claim_irq (&interrupt, INTR_REQ_USB); /* Enable */ asm volatile ("cpsie i" : : : "memory"); @@ -81,6 +81,7 @@ usb_intr (void *arg) usb_interrupt_handler (); } + chopstx_release_irq (&interrupt); return NULL; } |